Top Description Fields Constructors Methods
org.apache.commons.compress.harmony.pack200

public abstract Class Pack200Adapter

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.commons.compress.harmony.pack200.Pack200PackerAdapter, org.apache.commons.compress.harmony.unpack200.Pack200UnpackerAdapter
Imports
java.beans.PropertyChangeListener, .PropertyChangeSupport, java.io.IOException, java.util.SortedMap, .TreeMap

Provides generic JavaBeans support for the Pack/UnpackAdapters

Field Summary

Modifier and TypeField and Description
protected static final int
private final SortedMap<String, String>
private final PropertyChangeSupport

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
protected void
completed(final double
Completion between 0..1.
value
)

Completion between 0..1.

protected void
firePropertyChange(final String
name of property being updated
propertyName
,
final Object
old property value
oldValue
,
final Object
new property value
newValue
)

Reports a property update to listeners

public SortedMap<String, String>
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_BUFFER_SIZEback to summary
protected static final int DEFAULT_BUFFER_SIZE
propertiesback to summary
private final SortedMap<String, String> properties
supportback to summary
private final PropertyChangeSupport support

Constructor Detail

Pack200Adapterback to summary
public Pack200Adapter()

Method Detail

addPropertyChangeListenerback to summary
public void addPropertyChangeListener(final PropertyChangeListener listener)
completedback to summary
protected void completed(final double value) throws IOException

Completion between 0..1.

Parameters
value:double

Completion between 0..1.

Exceptions
IOException:
if the value cannot be parsed
firePropertyChangeback to summary
protected void firePropertyChange(final String propertyName, final Object oldValue, final Object newValue) throws IOException

Reports a property update to listeners

Parameters
propertyName:String

name of property being updated

oldValue:Object

old property value

newValue:Object

new property value

Exceptions
IOException:
if the values cannot be parsed
propertiesback to summary
public SortedMap<String, String> properties()
removePropertyChangeListenerback to summary
public void removePropertyChangeListener(final PropertyChangeListener listener)