Package adams.data.blob
Class BlobContainer
- java.lang.Object
-
- adams.data.container.AbstractSimpleContainer<byte[]>
-
- adams.data.blob.BlobContainer
-
- All Implemented Interfaces:
CloneHandler<AbstractSimpleContainer<byte[]>>,UniqueIDHandler,IDHandler,MutableIDHandler,MutableNotesHandler,NotesHandler,MutableReportHandler<Report>,ReportHandler<Report>,Serializable
public class BlobContainer extends AbstractSimpleContainer<byte[]> implements MutableIDHandler
Simple container for blob (ie byte array) objects that also offers notes and a report for storing meta-data.- Version:
- $Revision: 6656 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringm_IDthe ID.static intMAX_BYTES-
Fields inherited from class adams.data.container.AbstractSimpleContainer
FIELD_FILENAME, m_Content, m_Notes, m_Report, m_UUID
-
-
Constructor Summary
Constructors Constructor Description BlobContainer()Initializes the container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]cloneContent()Returns a clone of the image.StringgetID()Returns the ID.protected voidinitialize()Initializes the members.voidsetID(String value)Sets the ID.StringtoString()Returns a string representation of the container.-
Methods inherited from class adams.data.container.AbstractSimpleContainer
getClone, getContent, getHeader, getNotes, getReport, getUniqueID, hasReport, setContent, setNotes, setReport
-
-
-
-
Field Detail
-
MAX_BYTES
public static final int MAX_BYTES
- See Also:
- Constant Field Values
-
m_ID
protected String m_ID
the ID.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initializein classAbstractSimpleContainer<byte[]>
-
cloneContent
protected byte[] cloneContent()
Returns a clone of the image.- Specified by:
cloneContentin classAbstractSimpleContainer<byte[]>- Returns:
- the clone
-
getID
public String getID()
Returns the ID.
-
setID
public void setID(String value)
Sets the ID.- Specified by:
setIDin interfaceMutableIDHandler- Parameters:
value- the ID
-
toString
public String toString()
Returns a string representation of the container.- Overrides:
toStringin classAbstractSimpleContainer<byte[]>- Returns:
- the string representation
-
-