public class GzipFileBuffer extends FileBuffer
_file, _offset, _sublen
Constructor and Description |
---|
GzipFileBuffer(File file) |
GzipFileBuffer(File file,
int offset,
int sublen) |
Modifier and Type | Method and 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, getOffset
public GzipFileBuffer(File file)
public GzipFileBuffer(File file, int offset, int sublen)
public InputStream getInputStream() throws IOException
FileBuffer
getInputStream
in interface Buffer
getInputStream
in class FileBuffer
IOException
public OutputStream getOutputStream() throws IOException
FileBuffer
getOutputStream
in interface Buffer
getOutputStream
in class FileBuffer
IOException
public void readComplete(boolean success)
Buffer
readComplete
in interface Buffer
readComplete
in class FileBuffer
public void writeComplete(boolean success)
writeComplete
in interface Buffer
writeComplete
in class FileBuffer
success
- if false, deletes any resourcespublic int getLength()
getLength
in interface Buffer
getLength
in class FileBuffer
public String toString()
toString
in class FileBuffer