|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
net.sf.hermesftp.streams.RafOutputStream
public class RafOutputStream
Wrapper class for writing to a RandomAccessFile through the OutputStream abstraction.
| Constructor Summary | |
|---|---|
RafOutputStream(java.io.File file)
Constructor. |
|
RafOutputStream(java.io.File file,
boolean append)
Constructor. |
|
RafOutputStream(java.io.File file,
long offset)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
void |
writeRecord(byte[] data,
boolean eof)
Writes out a whole record. |
| Methods inherited from class java.io.OutputStream |
|---|
flush |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.hermesftp.streams.RecordWriteSupport |
|---|
flush |
| Constructor Detail |
|---|
public RafOutputStream(java.io.File file)
file - The output file;
public RafOutputStream(java.io.File file,
long offset)
file - The output file;offset - The number of bytes to be skipped, when writing to the file.
public RafOutputStream(java.io.File file,
boolean append)
file - The output file;append - Indication whether the data is to be appended to the output file.| Method Detail |
|---|
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void writeRecord(byte[] data,
boolean eof)
throws java.io.IOException
writeRecord in interface RecordWriteSupportdata - The record data.eof - True, if last record is passed.
java.io.IOException - Thrown if writing fails.
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||