|
Xindice API version 1.1b4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xindice.core.data.Value
Value is the primary base class for all data storing objects. The content window of Value objects are immutable, but the underlying byte array is not.
| Field Summary | |
protected byte[] |
data
|
protected int |
len
|
protected int |
pos
|
| Constructor Summary | |
Value(byte[] data)
|
|
Value(byte[] data,
int pos,
int len)
|
|
Value(java.lang.String data)
|
|
Value(Value value)
|
|
| Method Summary | |
int |
compareTo(java.lang.Object obj)
|
int |
compareTo(Value value)
|
void |
copyTo(byte[] tdata,
int tpos)
|
void |
copyTo(byte[] tdata,
int tpos,
int len)
|
boolean |
equals(java.lang.Object obj)
|
boolean |
equals(Value value)
|
byte[] |
getData()
getData retrieves the data being stored by the Value as a byte array. |
java.io.InputStream |
getInputStream()
getInputStream returns an InputStream for the Value. |
int |
getLength()
getLength retrieves the length of the data being stored by the Value. |
int |
hashCode()
|
boolean |
startsWith(Value value)
|
void |
streamTo(java.io.OutputStream out)
streamTo streams the content of the Value to an OutputStream. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected byte[] data
protected int pos
protected int len
| Constructor Detail |
public Value(Value value)
public Value(byte[] data)
public Value(byte[] data,
int pos,
int len)
public Value(java.lang.String data)
| Method Detail |
public final byte[] getData()
public final int getLength()
public final java.io.InputStream getInputStream()
public final void streamTo(java.io.OutputStream out)
throws java.io.IOException
out - the OutputStream
java.io.IOException
public final void copyTo(byte[] tdata,
int tpos)
public final void copyTo(byte[] tdata,
int tpos,
int len)
public final java.lang.String toString()
public int hashCode()
public boolean equals(Value value)
public boolean equals(java.lang.Object obj)
public final int compareTo(Value value)
public final int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparablepublic final boolean startsWith(Value value)
|
Xindice API version 1.1b4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||