edu.harvard.hul.ois.mets
Class BinData

java.lang.Object
  extended byedu.harvard.hul.ois.mets.helper.MetsElement
      extended byedu.harvard.hul.ois.mets.helper.MetsVElement
          extended byedu.harvard.hul.ois.mets.BinData
All Implemented Interfaces:
MetsSerializable, MetsValidatable

public class BinData
extends MetsVElement

This class encapsulates the <binData> element. Note that all content must be Base64 encoded, as defined by RFC 2045. See <http://www.loc.gov/standards/mets/>.


Field Summary
 
Fields inherited from class edu.harvard.hul.ois.mets.helper.MetsVElement
_valid
 
Fields inherited from class edu.harvard.hul.ois.mets.helper.MetsElement
_attrs, _content, _localName, _namespace, _qName, _schema
 
Constructor Summary
BinData()
          Instantiate a new <binData> object.
 
Method Summary
 void read(MetsReader r)
          De-serialize the content of the file into this element using the given reader.
static BinData reader(MetsReader r)
          Instantiate a BinData object de-serialized from the input stream.
 void validateThis(MetsValidator v)
          Validate this element the given validator.
 void write(MetsWriter w)
          De-serialize the content of this element using the given writer.
 
Methods inherited from class edu.harvard.hul.ois.mets.helper.MetsVElement
isValid, validate, validateIDREFs, validateThisIDREFs
 
Methods inherited from class edu.harvard.hul.ois.mets.helper.MetsElement
getContent, getLocalName, getNamespace, getQName, getSchemas, init, setSchema, setSchema, writeSchemas
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinData

public BinData()
Instantiate a new <binData> object.

Method Detail

reader

public static BinData reader(MetsReader r)
                      throws MetsException
Instantiate a BinData object de-serialized from the input stream.

Parameters:
r - Reader
Returns:
BinData object
Throws:
MetsException - De-serializing exception

read

public void read(MetsReader r)
          throws MetsException
De-serialize the content of the file into this element using the given reader.

Specified by:
read in interface MetsSerializable
Specified by:
read in class MetsElement
Parameters:
r - Reader
Throws:
MetsException

write

public void write(MetsWriter w)
           throws MetsException
De-serialize the content of this element using the given writer.

Specified by:
write in interface MetsSerializable
Specified by:
write in class MetsElement
Parameters:
w - Writer
Throws:
MetsException

validateThis

public void validateThis(MetsValidator v)
                  throws MetsException
Validate this element the given validator.

Specified by:
validateThis in interface MetsValidatable
Overrides:
validateThis in class MetsVElement
Parameters:
v - Validator
Throws:
MetsException - Validation exception