public class FragmentArrayIndex
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private byte[] |
aux |
private int |
elementsPerRow
Maximum number of valid elements in any row of the array.
|
private byte[] |
len |
private int |
numRows
Number of rows of the array.
|
private byte[] |
off |
private int |
v
Version.
|
static int |
VERSION_0 |
static int |
VERSION_1 |
static int |
VERSION_2 |
static int |
VERSION_3 |
Constructor and Description |
---|
FragmentArrayIndex()
Constructor.
|
FragmentArrayIndex(int version)
Constructor.
|
FragmentArrayIndex(int version,
int numRows,
int elementsPerRow)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getAux(int row,
int elementInRow) |
int |
getIntLength(int row,
int elementInRow) |
int |
getIntOffset(int row,
int elementInRow) |
long |
getLength(int row,
int elementInRow)
Returns the j-th length in row i of the array.
|
long |
getLongLength(int row,
int elementInRow) |
long |
getLongOffset(int row,
int elementInRow) |
int |
getNumElementsPerRow() |
int |
getNumRows() |
long |
getOffset(int row,
int elementInRow)
Returns the j-th offset in row i of the array.
|
java.lang.Class |
getType() |
int |
getVersion()
Returns the
v attribute. |
void |
list(java.io.PrintStream out)
Prints the Fragment Array Index data out to the specified output stream.
|
void |
reset()
Sets the attributes to their initial values.
|
void |
setAux(int row,
int elementInRow,
int aux) |
void |
setLength(int row,
int elementInRow,
int len) |
void |
setLength(int row,
int elementInRow,
long len) |
void |
setOffset(int row,
int elementInRow,
int off) |
void |
setOffset(int row,
int elementInRow,
long off) |
java.lang.String |
toString() |
private int v
public static int VERSION_0
public static int VERSION_1
public static int VERSION_2
public static int VERSION_3
private int elementsPerRow
private int numRows
private byte[] off
private byte[] len
private byte[] aux
public FragmentArrayIndex()
Default version is 0.
public FragmentArrayIndex(int version)
version
- definition in v
.public FragmentArrayIndex(int version, int numRows, int elementsPerRow)
version
- definition in v
.numElementsRow
- definition in #nmax
.numRows
- definition in #m
.public java.lang.Class getType()
public int getNumRows()
public int getNumElementsPerRow()
public long getOffset(int row, int elementInRow)
i
- j
- public long getLength(int row, int elementInRow)
i
- j
- public int getIntOffset(int row, int elementInRow)
public int getIntLength(int row, int elementInRow)
public long getLongOffset(int row, int elementInRow)
public long getLongLength(int row, int elementInRow)
public int getAux(int row, int elementInRow)
public void setOffset(int row, int elementInRow, int off)
public void setLength(int row, int elementInRow, int len)
public void setAux(int row, int elementInRow, int aux)
public void setOffset(int row, int elementInRow, long off)
public void setLength(int row, int elementInRow, long len)
public void reset()
public java.lang.String toString()
toString
in class java.lang.Object
public void list(java.io.PrintStream out)
out
- an output stream.
CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Group on Interactive Coding of Images (GICI) (contact)