public class BZip2ReadableFileSettings extends Object implements Cloneable
BZip2ReadableFile
object.
When this object is created it contains the default settings. Change the settings by calling setter methods.
Constructor and Description |
---|
BZip2ReadableFileSettings() |
Modifier and Type | Method and Description |
---|---|
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. |
org.entityfs.support.log.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(org.entityfs.support.log.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?
|
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'sthis
public boolean isUseCommonsCompress()
public BZip2ReadableFileSettings setLogAdapter(org.entityfs.support.log.LogAdapter la)
la
- The log adapter.this
public org.entityfs.support.log.LogAdapter getLogAdapter()
public BZip2InputStreamSettings getInputStreamSettings()
BZip2InputStream
based on the
configuration of this object.public BZip2ReadableFileSettings clone()