return WRITESUCCESS;
}
public byte[] readNextAndRemove() throws FileEOFException {
if (this.endPosition != -1 && this.readerPosition >= this.endPosition) {
throw new FileEOFException("file eof");
}
// readerPosition must be less than writerPosition
if (this.readerPosition >= this.writerPosition) {
return null;
}