com.partnersoft.data
Class NamedBlob

java.lang.Object
  extended by com.partnersoft.data.NamedBlob
All Implemented Interfaces:
Coggable

public class NamedBlob
extends java.lang.Object
implements Coggable

Class for manipulating a structure of a byte[] Blob, String name, and integer length of the Blob.

Copyright 2005-2006 Partner Software, Inc.

Author:
Rich Stepanski


Constructor Summary
NamedBlob()
           
NamedBlob(Cog node)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getBaseName()
          Returns the basename, using file name conventions - the part before the extension.
 DynamicByteArray getBytes()
           
 java.lang.String getExtension()
          Returns the file extension, including the period.
 java.lang.String getGuid()
           
 int getLength()
           
 java.lang.String getName()
           
 void setBytes(DynamicByteArray blob)
           
 void setGuid(java.lang.String guid)
           
 void setLength(int length)
           
 void setName(java.lang.String name)
           
 Cog toCog()
          Returns the complete internal state of this object in the form of a Cog.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedBlob

public NamedBlob()

NamedBlob

public NamedBlob(Cog node)
Method Detail

toCog

public Cog toCog()
Description copied from interface: Coggable
Returns the complete internal state of this object in the form of a Cog.

Specified by:
toCog in interface Coggable
Returns:
Cog representing the internal state of this object

getBytes

public DynamicByteArray getBytes()

getName

public java.lang.String getName()

getLength

public int getLength()

getGuid

public java.lang.String getGuid()

setName

public void setName(java.lang.String name)

setLength

public void setLength(int length)

setBytes

public void setBytes(DynamicByteArray blob)

setGuid

public void setGuid(java.lang.String guid)

getBaseName

public java.lang.String getBaseName()
Returns the basename, using file name conventions - the part before the extension.


getExtension

public java.lang.String getExtension()
Returns the file extension, including the period. Returns an empty string if there is none.


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object