# Class: com.pnfsoftware.jeb.core.units.AbstractBinaryUnit

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

## Protected Constructor: AbstractBinaryUnit
- parameter: `mimeType`, type: `java.lang.String`
- parameter: `input`, type: `com.pnfsoftware.jeb.core.input.IInput`
- parameter: `formatType`, type: `java.lang.String`
- parameter: `name`, type: `java.lang.String`
- parameter: `parent`, type: `com.pnfsoftware.jeb.core.units.IUnit`

Description: Create a binary unit using the parent unit's processor and property definitions.
parameter: mimeType: MIME type; defaults to `application/octet-stream` if null or empty
parameter: input: mandatory binary input
parameter: formatType: unit format type
parameter: name: unit name
parameter: parent: parent unit

## Protected Constructor: AbstractBinaryUnit
- parameter: `mimeType`, type: `java.lang.String`
- parameter: `input`, type: `com.pnfsoftware.jeb.core.input.IInput`
- parameter: `formatType`, type: `java.lang.String`
- parameter: `name`, type: `java.lang.String`
- parameter: `unitProcessor`, type: `com.pnfsoftware.jeb.core.units.IUnitProcessor`
- parameter: `parent`, type: `com.pnfsoftware.jeb.core.IUnitCreator`
- parameter: `pdm`, type: `com.pnfsoftware.jeb.core.properties.IPropertyDefinitionManager`

Description: Create a binary unit.
parameter: mimeType: MIME type; defaults to `application/octet-stream` if null or empty
parameter: input: mandatory binary input
parameter: formatType: unit format type
parameter: name: unit name
parameter: unitProcessor: unit processor
parameter: parent: parent unit or artifact
parameter: pdm: property definition manager

## Method: getInput
- return type: `com.pnfsoftware.jeb.core.input.IInput`

Description: The default implementation returns the input provided to the constructor.

## Method: getMimeType
- return type: `java.lang.String`

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

## Method: setInput
- parameter: `input`, type: `com.pnfsoftware.jeb.core.input.IInput`

Description: Set the binary input.
parameter: input: binary input

## Method: setMimeType
- parameter: `mimeType`, type: `java.lang.String`

Description: Set the MIME type.
parameter: mimeType: MIME type

