public abstract class

AbstractBinaryUnit

extends AbstractUnit
implements IBinaryUnit
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

Class Overview

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);
     ...
 }
 

Summary

[Expand]
Inherited Fields
From class com.pnfsoftware.jeb.core.events.JebEventSource
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)
Public Methods
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.IUnitCreator
From interface com.pnfsoftware.jeb.core.IUserDataSupport
From interface com.pnfsoftware.jeb.core.units.IBinaryUnit
From interface com.pnfsoftware.jeb.core.units.IUnit
From interface com.pnfsoftware.jeb.util.events.IEventSource

Public Constructors

public AbstractBinaryUnit (String mimeType, IInput input, String formatType, String name, IUnit parent)

public AbstractBinaryUnit (String mimeType, IInput input, String formatType, String name, IUnitProcessor unitProcessor, IUnitCreator parent, IPropertyDefinitionManager pdm)

Public Methods

public IInput getInput ()

The default implementation returns the input provided to the constructor.

Returns
  • a mandatory input object

public String getMimeType ()

The default implementation returns the MIME type provided to the constructor.

Returns
  • optional content-type

public void setInput (IInput input)

public void setMimeType (String mimeType)