org.at4j.comp.bzip2
Class BZip2InputStreamSettings

java.lang.Object
  extended by org.at4j.comp.bzip2.BZip2InputStreamSettings
All Implemented Interfaces:
Cloneable

public class BZip2InputStreamSettings
extends Object
implements Cloneable

This object contains settings for the BZip2InputStream.

When created, this object contains the default BZip2InputStream settings. Settings are then modified by calling its setters.

Since:
1.1
Author:
Karl Gustafsson
See Also:
BZip2InputStream

Constructor Summary
BZip2InputStreamSettings()
           
 
Method Summary
 BZip2InputStreamSettings clone()
          Make a copy of this object.
 LogAdapter getLogAdapter()
          Get the log adapter used to write diagnostic output to.
 BZip2InputStreamSettings setLogAdapter(LogAdapter la)
          Set a LogAdapter for writing diagnostic output from the bzip2 decoder to.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BZip2InputStreamSettings

public BZip2InputStreamSettings()
Method Detail

setLogAdapter

public BZip2InputStreamSettings setLogAdapter(LogAdapter la)
Set a LogAdapter for writing diagnostic output from the bzip2 decoder to. Diagnostic output is written to the debug and trace levels.

By default, no log adapter is used. This disables diagnostic output altogether.

Parameters:
la - The log adapter.
Returns:
this

getLogAdapter

public LogAdapter getLogAdapter()
Get the log adapter used to write diagnostic output to.

Returns:
The log adapter, or null if no log adapter is set.

clone

public BZip2InputStreamSettings clone()
Make a copy of this object.

Overrides:
clone in class Object