Buffer
public class GzipFileBuffer extends FileBuffer
_file, _offset, _sublen
コンストラクタ | 説明 |
---|---|
GzipFileBuffer(java.io.File file) |
|
GzipFileBuffer(java.io.File file,
int offset,
int sublen) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
java.io.InputStream |
getInputStream() |
Caller must call readComplete()
|
int |
getLength() |
Returns the actual uncompressed size.
|
java.io.OutputStream |
getOutputStream() |
Caller must call writeComplete()
|
void |
readComplete(boolean success) |
Top-level reader MUST call this to close the input stream.
|
java.lang.String |
toString() |
|
void |
writeComplete(boolean success) |
Sets the length if success is true
|
getFile, getOffset
public GzipFileBuffer(java.io.File file)
public GzipFileBuffer(java.io.File file, int offset, int sublen)
public java.io.InputStream getInputStream() throws java.io.IOException
FileBuffer
getInputStream
インタフェース内 Buffer
getInputStream
クラス内 FileBuffer
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
FileBuffer
getOutputStream
インタフェース内 Buffer
getOutputStream
クラス内 FileBuffer
java.io.IOException
public void readComplete(boolean success)
Buffer
readComplete
インタフェース内 Buffer
readComplete
クラス内 FileBuffer
public void writeComplete(boolean success)
writeComplete
インタフェース内 Buffer
writeComplete
クラス内 FileBuffer
success
- if false, deletes any resourcespublic int getLength()
getLength
インタフェース内 Buffer
getLength
クラス内 FileBuffer
public java.lang.String toString()
toString
クラス内 FileBuffer