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

## 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`


## 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`


## 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`


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


