Package loci.formats.tools
Class AmiraParameters
java.lang.Object
loci.formats.tools.AmiraParameters
AmiraParameters handles parsing and writing of AmiraMesh headers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanprotected charprotected intintintintprotected RandomAccessInputStreambooleanprotected Mapintprotected intString[]protected MapString[]intdoubledoubledoubledoubledoubledouble -
Constructor Summary
ConstructorsConstructorDescriptionAmiraParameters(String path) AmiraParameters(RandomAccessInputStream inputStream) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringentryToString(Object object, String indent) protected voidgetMap()static voidprotected charreadByte()protected Double[]readDoubleArray(int count) protected voidprotected voidreadFile(RandomAccessInputStream inputStream) protected Integer[]protected Integer[]readIntArray(int count) protected StringreadKey()protected MapreadMap()protected Numberprotected Number[]protected Stringprotected voidprotected voidprotected voidprotected voidsyntaxError(String message) toString()static String
-
Field Details
-
width
public int width -
height
public int height -
depth
public int depth -
firstDataStream
public int firstDataStream -
x0
public double x0 -
y0
public double y0 -
z0
public double z0 -
x1
public double x1 -
y1
public double y1 -
z1
public double z1 -
littleEndian
public boolean littleEndian -
ascii
public boolean ascii -
nStreams
public int nStreams -
streamNames
-
streamTypes
-
in
-
map
-
streams
-
column
protected int column -
row
protected int row -
c
protected char c
-
-
Constructor Details
-
AmiraParameters
- Throws:
loci.formats.FormatException
-
AmiraParameters
public AmiraParameters(RandomAccessInputStream inputStream) throws loci.formats.FormatException, IOException
-
-
Method Details
-
readFile
- Throws:
loci.formats.FormatException
-
readFile
protected void readFile(RandomAccessInputStream inputStream) throws loci.formats.FormatException, IOException -
extractCoreMetaData
- Throws:
loci.formats.FormatException
-
syntaxError
- Throws:
loci.formats.FormatException
-
readTopLevel
-
readByte
- Throws:
IOException
-
skipComment
- Throws:
IOException
-
skipWhiteSpace
- Throws:
IOException
-
readKey
- Throws:
IOException
-
readNumber
-
readIntArray
-
readNumberArray
-
readIntArray
-
readDoubleArray
-
readQuotedString
-
readMap
-
getMap
-
getStreams
-
toString
-
toString
- Throws:
loci.formats.FormatException
-
entryToString
public static String entryToString(Object object, String indent) throws loci.formats.FormatException - Throws:
loci.formats.FormatException
-
main
-