public class FileRecord extends Object implements IOReadableWritable
| Constructor and Description |
|---|
FileRecord() |
FileRecord(String fileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(byte[] data,
int start,
int len)
Append a range of bytes to the end of the given data.
|
boolean |
equals(Object obj) |
byte[] |
getDataBuffer() |
String |
getFileName() |
int |
hashCode() |
void |
read(DataInputView in) |
void |
setFileName(String fileName) |
void |
write(DataOutputView out) |
public FileRecord()
public FileRecord(String fileName)
public void setFileName(String fileName)
public String getFileName()
public byte[] getDataBuffer()
public void append(byte[] data,
int start,
int len)
data - the data to copy fromstart - the first position to append from datalen - the number of bytes to appendpublic void read(DataInputView in) throws IOException
read in interface IOReadableWritableIOExceptionpublic void write(DataOutputView out) throws IOException
write in interface IOReadableWritableIOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.