| java.lang.Object | |||
| ↳ | com.pnfsoftware.jeb.core.events.JebEventSource | ||
| ↳ | com.pnfsoftware.jeb.core.units.AbstractUnit | ||
| ↳ | com.pnfsoftware.jeb.core.units.AbstractBinaryUnit | ||
Known Direct Subclasses
|
Known Indirect Subclasses
|
This extension class provides basic implementations for methods specific to binary units.
Implementors must implement their own constructor; the default constructor is used for deserialization only. Example of a typical binary unit constructor:
public DerivedClass(String name, IInput input, IUnitProcessor unitProcessor, IUnitCreator parent,
IPropertyDefinitionManager pdm) {
super(..., input, ..., name, unitProcessor, parent, pdm);
...
}
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| AbstractBinaryUnit(String mimeType, IInput input, String formatType, String name, IUnit parent) | |||||||||||
| AbstractBinaryUnit(String mimeType, IInput input, String formatType, String name, IUnitProcessor unitProcessor, IUnitCreator parent, IPropertyDefinitionManager pdm) | |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| AbstractBinaryUnit() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int |
getConsummedSize()
The default implementation returns 0.
| ||||||||||
| IInput |
getInput()
The default implementation returns the input provided to the constructor.
| ||||||||||
| String |
getMimeType()
The default implementation returns the MIME type provided to the constructor.
| ||||||||||
| void | setInput(IInput input) | ||||||||||
| void | setMimeType(String mimeType) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pnfsoftware.jeb.core.units.AbstractUnit
| |||||||||||
From class
com.pnfsoftware.jeb.core.events.JebEventSource
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.IBinaryUnit
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.IUnit
| |||||||||||
From interface
com.pnfsoftware.jeb.util.events.IEventSource
| |||||||||||
The default implementation returns 0.
The default implementation returns the input provided to the constructor.
The default implementation returns the MIME type provided to the constructor.