public interface OutddHandler
| Modifier and Type | Method and Description |
|---|---|
void |
close()
closes the stream
|
void |
open(String fileName,
int recordLen,
boolean lineSequential)
opens the the
fileName in OUTPUT mode |
void |
write(String str,
boolean advancing)
writes a string to the output stream
|
void open(String fileName, int recordLen, boolean lineSequential) throws IOException
fileName in OUTPUT modefileName: - the name of the file to be openedrecordLen: - the maximum length of the record to be written; if it is <= 0, the maximum length is undefinedlineSequential: - specified if the record must be terminated with the line terminatorIOExceptionvoid close()
throws IOException
IOExceptionvoid write(String str, boolean advancing) throws IOException
str: - the string to be writtenadvancing: - specifies if the record must be terminatedIOException