|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.at4j.comp.bzip2.BZip2ReadableFileSettings
public class BZip2ReadableFileSettings
Settings used when creating a BZip2ReadableFile
object.
When this object is created it contains the default settings. Change the settings by calling setter methods.
Constructor Summary | |
---|---|
BZip2ReadableFileSettings()
|
Method Summary | |
---|---|
BZip2ReadableFileSettings |
clone()
Make a copy of this object. |
int |
getBufferSize()
|
BZip2InputStreamSettings |
getInputStreamSettings()
Get the settings for a BZip2InputStream based on the
configuration of this object. |
LogAdapter |
getLogAdapter()
|
boolean |
isUseCommonsCompress()
|
BZip2ReadableFileSettings |
setBufferSize(int bufferSize)
Set the buffer size for the buffered input stream that the bzip2 input stream is opened on. |
BZip2ReadableFileSettings |
setLogAdapter(LogAdapter la)
Set a log adapter that the bzip2 input stream will use to log diagnostic output. |
BZip2ReadableFileSettings |
setUseCommonsCompress(boolean b)
Should the bzip2 input stream from Apache Commons Compress be used instead of At4J's implementation? |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BZip2ReadableFileSettings()
Method Detail |
---|
public BZip2ReadableFileSettings setBufferSize(int bufferSize) throws IllegalArgumentException
bufferSize
- The size of the buffer for the buffered input stream
that the bzip2 input stream is opened on. Set this to -1
to use
the default buffer size (8192 bytes).
this
IllegalArgumentException
public int getBufferSize()
public BZip2ReadableFileSettings setUseCommonsCompress(boolean b)
b
- Should Apache Commons Compress' bzip2 implementation be used
instead of At4J's
this
public boolean isUseCommonsCompress()
public BZip2ReadableFileSettings setLogAdapter(LogAdapter la)
la
- The log adapter.
this
public LogAdapter getLogAdapter()
public BZip2InputStreamSettings getInputStreamSettings()
BZip2InputStream
based on the
configuration of this object.
public BZip2ReadableFileSettings clone()
clone
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |