net.sf.hermesftp.streams
Interface RecordWriteSupport

All Known Implementing Classes:
BlockModeOutputStream, RafOutputStream, RecordOutputStream, TextOutputStream

public interface RecordWriteSupport

Implemented by streams that support writing records.

Author:
Lars Behnke

Method Summary
 void flush()
          Flushes any buffered record data.
 void writeRecord(byte[] data, boolean eof)
          Writes out a whole record.
 

Method Detail

writeRecord

void writeRecord(byte[] data,
                 boolean eof)
                 throws java.io.IOException
Writes out a whole record.

Parameters:
data - The record data.
eof - True, if last record is passed.
Throws:
java.io.IOException - Thrown if writing fails.

flush

void flush()
           throws java.io.IOException
Flushes any buffered record data.

Throws:
java.io.IOException - Thrown if IO fails.


Copyright © 2005-2007 Lars Behnke. All Rights Reserved.