public class TiffInputStream extends Object implements TiffDataIntput
| Constructor and Description |
|---|
TiffInputStream(File file)
Instantiates a new data byte order input stream.
|
TiffInputStream(RandomAccessFile raf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ByteOrder |
getByteOrder()
Gets the byte order.
|
String |
getFilePath() |
PagedInputBuffer |
getStream()
Gets the stream.
|
int |
read() |
Ascii |
readAscii()
Read byte.
|
Ascii |
readAscii(long position)
Read ascii.
|
Byte |
readByte()
Read byte.
|
Byte |
readByte(long position)
Read byte.
|
byte |
readDirectByte() |
Double |
readDouble()
Read double.
|
Double |
readDouble(long position)
Read double.
|
Float |
readFloat()
Read float.
|
Float |
readFloat(long position)
Read float.
|
Long |
readLong()
Read long.
|
Long |
readLong(long position)
Read long.
|
Rational |
readRational()
Read rational.
|
Rational |
readRational(long position)
Read rational.
|
SByte |
readSByte()
Read s byte.
|
SByte |
readSByte(long position)
Read s byte.
|
Short |
readShort()
Read ascii.
|
Short |
readShort(long position)
Read short.
|
SLong |
readSLong()
Read s long.
|
SLong |
readSLong(long position)
Read s long.
|
SRational |
readSRational()
Read s rational.
|
SRational |
readSRational(long position)
Read s rational.
|
SShort |
readSShort()
Read s short.
|
SShort |
readSShort(long position)
Read s short.
|
Undefined |
readUndefined()
Read undefined.
|
Undefined |
readUndefined(long position)
Read undefined.
|
void |
seek(long pos) |
void |
seekOffset(long offset)
Seek offset.
|
void |
setByteOrder(ByteOrder byteOrder)
Sets the byte order.
|
long |
size()
File size in bytes.
|
public TiffInputStream(File file) throws FileNotFoundException
file - fileFileNotFoundException - sdfpublic TiffInputStream(RandomAccessFile raf) throws FileNotFoundException
FileNotFoundExceptionpublic ByteOrder getByteOrder()
public String getFilePath()
public int read()
throws IOException
IOExceptionpublic void seek(long pos)
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic PagedInputBuffer getStream()
public void setByteOrder(ByteOrder byteOrder)
byteOrder - the byteOrder to setpublic void seekOffset(long offset)
throws IOException
offset - the offsetIOException - Signals that an I/O exception has occurred.public Byte readByte(long position) throws IOException
position - the positionIOException - Signals that an I/O exception has occurred.public Byte readByte() throws IOException
TiffDataIntputreadByte in interface TiffDataIntputIOException - Signals that an I/O exception has occurred.public byte readDirectByte()
throws IOException
IOExceptionpublic Ascii readAscii(long position) throws IOException
position - the positionIOException - Signals that an I/O exception has occurred.public Ascii readAscii() throws IOException
TiffDataIntputreadAscii in interface TiffDataIntputIOException - Signals that an I/O exception has occurred.public SByte readSByte(long position) throws IOException
position - the positionIOException - Signals that an I/O exception has occurred.public SByte readSByte() throws IOException
TiffDataIntputreadSByte in interface TiffDataIntputIOException - Signals that an I/O exception has occurred.public Short readShort(long position) throws IOException
position - the positionIOException - Signals that an I/O exception has occurred.public Short readShort() throws IOException
TiffDataIntputreadShort in interface TiffDataIntputIOException - Signals that an I/O exception has occurred.public SShort readSShort(long position) throws IOException
position - the positionIOException - Signals that an I/O exception has occurred.public SShort readSShort() throws IOException
TiffDataIntputreadSShort in interface TiffDataIntputIOException - Signals that an I/O exception has occurred.public Long readLong(long position) throws IOException
position - the positionIOException - Signals that an I/O exception has occurred.public Long readLong() throws IOException
TiffDataIntputreadLong in interface TiffDataIntputIOException - Signals that an I/O exception has occurred.public SLong readSLong(long position) throws IOException
position - the positionIOException - Signals that an I/O exception has occurred.public SLong readSLong() throws IOException
TiffDataIntputreadSLong in interface TiffDataIntputIOException - Signals that an I/O exception has occurred.public Undefined readUndefined(long position) throws IOException
position - the positionIOException - Signals that an I/O exception has occurred.public Undefined readUndefined() throws IOException
TiffDataIntputreadUndefined in interface TiffDataIntputIOException - Signals that an I/O exception has occurred.public Rational readRational(long position) throws IOException
position - the positionIOException - Signals that an I/O exception has occurred.public Rational readRational() throws IOException
TiffDataIntputreadRational in interface TiffDataIntputIOException - Signals that an I/O exception has occurred.public SRational readSRational(long position) throws IOException
position - the positionIOException - Signals that an I/O exception has occurred.public SRational readSRational() throws IOException
TiffDataIntputreadSRational in interface TiffDataIntputIOException - Signals that an I/O exception has occurred.public Float readFloat(long position) throws IOException
position - the positionIOException - Signals that an I/O exception has occurred.public Float readFloat() throws IOException
TiffDataIntputreadFloat in interface TiffDataIntputIOException - Signals that an I/O exception has occurred.public Double readDouble(long position) throws IOException
position - the positionIOException - Signals that an I/O exception has occurred.public Double readDouble() throws IOException
TiffDataIntputreadDouble in interface TiffDataIntputIOException - Signals that an I/O exception has occurred.public long size()
Copyright © 2015–2020. All rights reserved.