public interface Entity extends Cloneable, Serializable
Modifier and Type | Method and Description |
---|---|
Entity |
clone()
Clone oneself.
|
void |
fill(byte b)
Fill this entity's value with all
b . |
byte[] |
getValue()
Get the value of this Entity.
|
byte[] |
getValue(int offset,
int length)
Get a subset of this Entity's value.
|
int |
length()
Get the length of this Entity.
|
void |
readFrom(InputStream is)
Read value from an InputStream.
|
void |
setValue(byte[] b)
Set this Entity's value.
|
void |
setValue(byte[] b,
int offset,
int length)
Set this Entity's value to a subset of the specified byte[].
|
void |
writeTo(OutputStream os)
Write value to an OutputStream.
|
int length()
void readFrom(InputStream is) throws IOException
is
- to readIOException
- on errorvoid writeTo(OutputStream os) throws IOException
os
- to write toIOException
- on errorvoid fill(byte b) throws IOException
b
.b
- valueIOException
- on errorbyte[] getValue()
byte[] getValue(int offset, int length)
offset
- to startlength
- to extendvoid setValue(byte[] b)
b
- byte[]void setValue(byte[] b, int offset, int length)
b
- byte[]offset
- intlength
- intCopyright © 2008-2016 The Apache Software Foundation. All Rights Reserved.