Bufferpublic class GzipFileBuffer extends FileBuffer
_file, _offset, _sublen| Constructor | Description |
|---|---|
GzipFileBuffer(File file) |
|
GzipFileBuffer(File file,
int offset,
int sublen) |
| Modifier and Type | Method | Description |
|---|---|---|
InputStream |
getInputStream() |
Caller must call readComplete()
|
int |
getLength() |
Returns the actual uncompressed size.
|
OutputStream |
getOutputStream() |
Caller must call writeComplete()
|
void |
readComplete(boolean success) |
Top-level reader MUST call this to close the input stream.
|
String |
toString() |
|
void |
writeComplete(boolean success) |
Sets the length if success is true
|
getFile, getOffsetpublic GzipFileBuffer(File file)
public GzipFileBuffer(File file, int offset, int sublen)
public InputStream getInputStream() throws IOException
FileBuffergetInputStream in interface BuffergetInputStream in class FileBufferIOExceptionpublic OutputStream getOutputStream() throws IOException
FileBuffergetOutputStream in interface BuffergetOutputStream in class FileBufferIOExceptionpublic void readComplete(boolean success)
BufferreadComplete in interface BufferreadComplete in class FileBufferpublic void writeComplete(boolean success)
writeComplete in interface BufferwriteComplete in class FileBuffersuccess - if false, deletes any resourcespublic int getLength()
getLength in interface BuffergetLength in class FileBufferpublic String toString()
toString in class FileBuffer