public class FileImageOutputStreamExtImpl extends ImageOutputStreamImpl implements FileImageOutputStreamExt
ImageOutputStream that take its output on a
File.bitOffset, byteOrder, flushedPos, streamPos| Constructor and Description |
|---|
FileImageOutputStreamExtImpl(File file)
A constructor which accepts a File as input.
|
FileImageOutputStreamExtImpl(File file,
int bufSize)
A constructor which accepts a File as input.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying
EnhancedRandomAccessFile. |
void |
dispose()
Disposes this
FileImageInputStreamExtImpl by closing its
underlying EnhancedRandomAccessFile. |
Class<File> |
getBinding()
Retrieve the class for the target object.
|
File |
getFile()
Retrieves the
File we are connected to. |
File |
getTarget()
Allows us to access the underlying file.
|
long |
length() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long pos)
Sets the current stream position and resets the bit offset to 0.
|
String |
toString()
Provides a simple description for this
ImageOutputStream. |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flushBits, write, writeBit, writeBits, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeChars, writeDouble, writeDoubles, writeFloat, writeFloats, writeInt, writeInts, writeLong, writeLongs, writeShort, writeShorts, writeUTFcheckClosed, finalize, flush, flushBefore, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, mark, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, setBitOffset, setByteOrder, skipBytes, skipBytesclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitflushBefore, write, writeBit, writeBits, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeChars, writeDouble, writeDoubles, writeFloat, writeFloats, writeInt, writeInts, writeLong, writeLongs, writeShort, writeShorts, writeUTFflush, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, mark, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, setBitOffset, setByteOrder, skipBytes, skipBytespublic FileImageOutputStreamExtImpl(File file) throws FileNotFoundException, IOException
eraf - FileNotFoundExceptionIOExceptionpublic FileImageOutputStreamExtImpl(File file, int bufSize) throws FileNotFoundException, IOException
eraf - bufSize - FileNotFoundExceptionIOExceptionpublic int read()
throws IOException
read in interface ImageInputStreamread in class ImageInputStreamImplIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in interface ImageInputStreamread in class ImageInputStreamImplIOExceptionpublic void write(int b)
throws IOException
write in interface DataOutputwrite in interface ImageOutputStreamwrite in class ImageOutputStreamImplIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in interface DataOutputwrite in interface ImageOutputStreamwrite in class ImageOutputStreamImplIOExceptionpublic long length()
length in interface ImageInputStreamlength in class ImageInputStreamImplpublic void seek(long pos)
throws IOException
EOFException
will be thrown only if a read is performed. The eraf length will not be
increased until a write is performed.seek in interface ImageInputStreamseek in class ImageInputStreamImplIndexOutOfBoundsException - if pos is smaller than the flushed
position.IOException - if any other I/O error occurs.public void close()
throws IOException
EnhancedRandomAccessFile.close in interface Closeableclose in interface AutoCloseableclose in interface ImageInputStreamclose in class ImageInputStreamImplIOException - in case something bad happens.public File getFile()
File we are connected to.getFile in interface FileImageOutputStreamExtFilepublic void dispose()
FileImageInputStreamExtImpl by closing its
underlying EnhancedRandomAccessFile.public String toString()
ImageOutputStream.toString in class ObjectImageOutputStream.public File getTarget()
getTarget in interface AccessibleStream<File>File.public Class<File> getBinding()
AccessibleStreamgetBinding in interface AccessibleStream<File>Copyright © 2006–2019 GeoSolutions. All rights reserved.