Package loci.formats.in
Class AmiraReader.ASCII
java.lang.Object
loci.formats.in.AmiraReader.ASCII
- All Implemented Interfaces:
AmiraReader.PlaneReader
- Enclosing class:
AmiraReader
This class provides a not-quite-efficient, but simple reader for
planes stored in ASCII-encoded numbers.
Should efficiency ever become a concern, we'll need to have
specializations for every pixel type.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) byte[](package private) long[](package private) int(package private) int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]read(int no, byte[] buf) (package private) double(package private) byte
-
Field Details
-
pixelType
int pixelType -
bytesPerPixel
int bytesPerPixel -
pixelsPerPlane
int pixelsPerPlane -
offsets
long[] offsets -
numberBuffer
byte[] numberBuffer
-
-
Constructor Details
-
ASCII
ASCII(int pixelType, int pixelsPerPlane)
-
-
Method Details
-
read
- Specified by:
readin interfaceAmiraReader.PlaneReader- Throws:
FormatExceptionIOException
-
readNumberString
- Throws:
IOException
-
skipWhiteSpace
- Throws:
IOException
-