|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.store.DataOutput
org.apache.lucene.util.GrowableByteArrayDataOutput
public final class GrowableByteArrayDataOutput
A DataOutput that can be used to build a byte[].
| Field Summary | |
|---|---|
byte[] |
bytes
The bytes |
int |
length
The length |
| Constructor Summary | |
|---|---|
GrowableByteArrayDataOutput(int cp)
Create a GrowableByteArrayDataOutput with the given initial capacity. |
|
| Method Summary | |
|---|---|
void |
writeByte(byte b)
Writes a single byte. |
void |
writeBytes(byte[] b,
int off,
int len)
Writes an array of bytes. |
| Methods inherited from class org.apache.lucene.store.DataOutput |
|---|
copyBytes, writeBytes, writeInt, writeLong, writeShort, writeString, writeStringSet, writeStringStringMap, writeVInt, writeVLong |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public byte[] bytes
public int length
| Constructor Detail |
|---|
public GrowableByteArrayDataOutput(int cp)
GrowableByteArrayDataOutput with the given initial capacity.
| Method Detail |
|---|
public void writeByte(byte b)
DataOutputThe most primitive data type is an eight-bit byte. Files are accessed as sequences of bytes. All other data types are defined as sequences of bytes, so file formats are byte-order independent.
writeByte in class DataOutputDataInput.readByte()
public void writeBytes(byte[] b,
int off,
int len)
DataOutput
writeBytes in class DataOutputb - the bytes to writeoff - the offset in the byte arraylen - the number of bytes to writeDataInput.readBytes(byte[],int,int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||