public class TiffOutputStream extends Object
| Constructor and Description |
|---|
TiffOutputStream(TiffInputStream in)
Instantiates a new tiff stream io.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close.
|
void |
create(String filename)
Create stream.
|
byte |
get(int offset)
Reads a byte.
|
ByteOrder |
getByteOrder()
Gets the byte order.
|
RandomAccessFile |
getOutputStream() |
long |
position()
Position.
|
void |
put(byte val)
Puts a byte.
|
void |
putDouble(Double val)
Puts a double (4 bytes).
|
void |
putFloat(Float val)
Puts a float (4 bytes).
|
void |
putInt(int val)
Puts a int (4 bytes).
|
void |
putLong(Long val)
Puts a Long (4 bytes).
|
void |
putRational(Rational val)
Puts a Rational (4 bytes).
|
void |
putShort(short val)
Puts a short (2 bytes).
|
void |
putSLong(SLong val)
Puts a SLong (4 bytes).
|
void |
putSRational(SRational val)
Puts a SRational (4 bytes).
|
void |
putSShort(SShort val)
Puts a sShort (2 bytes).
|
void |
seek(int offset)
Seek.
|
void |
setByteOrder(ByteOrder byteOrder)
Sets the byte order.
|
void |
writeByteCurrentPosition(byte v)
Write byte.
|
void |
writeIntCurrentPosition(int v)
Write byte.
|
public TiffOutputStream(TiffInputStream in)
in - the input streampublic RandomAccessFile getOutputStream()
public ByteOrder getByteOrder()
public void setByteOrder(ByteOrder byteOrder)
byteOrder - the new byte orderpublic void create(String filename) throws IOException
filename - the filenameIOException - Signals that an I/O exception has occurred.public void close()
public void seek(int offset)
throws IOException
offset - the offsetIOException - Signals that an I/O exception has occurred.public void put(byte val)
throws IOException
val - the valIOException - Signals that an I/O exception has occurred.public byte get(int offset)
throws IOException
offset - the positionIOException - Signals that an I/O exception has occurred.public void putShort(short val)
throws IOException
val - the valIOException - Signals that an I/O exception has occurred.public void putSShort(SShort val) throws IOException
val - the valIOException - Signals that an I/O exception has occurred.public void putInt(int val)
throws IOException
val - the valIOException - Signals that an I/O exception has occurred.public void putLong(Long val) throws IOException
val - the valIOException - Signals that an I/O exception has occurred.public void putSLong(SLong val) throws IOException
val - the valIOException - Signals that an I/O exception has occurred.public void putRational(Rational val) throws IOException
val - the valIOException - Signals that an I/O exception has occurred.public void putSRational(SRational val) throws IOException
val - the valIOException - Signals that an I/O exception has occurred.public void putFloat(Float val) throws IOException
val - the valIOException - Signals that an I/O exception has occurred.public void putDouble(Double val) throws IOException
val - the valIOException - Signals that an I/O exception has occurred.public void writeByteCurrentPosition(byte v)
throws IOException
v - the vIOException - Signals that an I/O exception has occurred.public void writeIntCurrentPosition(int v)
throws IOException
v - the vIOException - Signals that an I/O exception has occurred.public long position()
throws IOException
IOException - Signals that an I/O exception has occurred.Copyright © 2015–2020. All rights reserved.