|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.tif.jacob.core.data.DataDocumentValue
public final class DataDocumentValue
Data document value instances could be obtained by means of
IDataRecord.getDocumentValue(int)
IDataRecord.getValue(int) for jACOB document field types.
| Field Summary | |
|---|---|
static java.lang.String |
RCS_ID
The internal revision control system id. |
static java.lang.String |
RCS_REV
The internal revision control system id in short form. |
| Method Summary | |
|---|---|
static DataDocumentValue |
create(java.io.File file)
Create a document value instance from a file instance. |
static DataDocumentValue |
create(java.lang.String name,
byte[] content)
Create a document value instance by means of name and binary content. |
static DataDocumentValue |
create(java.lang.String name,
byte[] content,
int len)
Create a document value instance by means of name and binary content. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
byte[] |
getContent()
Returns the content of this document. |
java.lang.String |
getName()
Returns the name of this document. |
java.lang.String |
toString()
Returns the document value as string, i.e. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final transient java.lang.String RCS_ID
public static final transient java.lang.String RCS_REV
| Method Detail |
|---|
public static DataDocumentValue create(java.io.File file) throws java.io.IOException
file - the file instance
java.io.IOException - if the content of file could not be accessed, i.e.
file does not exist.public static DataDocumentValue create(java.lang.String name, byte[] content)
name - the document namecontent - the binary content or null
null if name is not a
valid document name.public static DataDocumentValue create(java.lang.String name, byte[] content, int len)
name - the document namecontent - the binary content or nulllen - the maximum number of bytes to read from content
null if name is not a
valid document name.public byte[] getContent()
Attention: This method does not return a copy of the content. Therefore the returned content should not be modified.
Note: If the document is empty, byte[0] will be returned
instead of null.
public java.lang.String getName()
public boolean equals(java.lang.Object obj)
Different instances of this class are equal, if the document name and the content are equal as well.
equals in class java.lang.ObjectObject.equals(java.lang.Object)public java.lang.String toString()
toString in class java.lang.Object
|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||