public class ProcOpenOutput extends AbstractBinaryOutput implements EnvCleanup
SEEK_CUR, SEEK_END, SEEK_SET| Constructor and Description |
|---|
ProcOpenOutput(Env env,
java.io.OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Implements the EnvCleanup interface.
|
void |
close()
Closes the file.
|
void |
closeWrite()
Closes the file.
|
void |
flush()
Flushes the output.
|
java.io.OutputStream |
getOutputStream()
Returns the write stream.
|
void |
print(char v)
Prints a string to a file.
|
void |
print(java.lang.String v)
Prints a string to a file.
|
java.lang.String |
toString()
Converts to a string.
|
void |
write(byte[] buffer,
int offset,
int length)
Writes a buffer to a file.
|
void |
write(int ch)
Writes a character
|
getPosition, getResourceType, isEOF, seek, setPosition, stat, writepublic ProcOpenOutput(Env env, java.io.OutputStream out) throws java.io.IOException
java.io.IOExceptionpublic java.io.OutputStream getOutputStream()
getOutputStream in interface BinaryOutputgetOutputStream in class AbstractBinaryOutputpublic void print(char v)
throws java.io.IOException
print in interface BinaryOutputprint in class AbstractBinaryOutputjava.io.IOExceptionpublic void print(java.lang.String v)
throws java.io.IOException
print in interface BinaryOutputprint in class AbstractBinaryOutputjava.io.IOExceptionpublic void write(int ch)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
write in interface BinaryOutputwrite in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
flush in interface BinaryOutputflush in interface java.io.Flushableflush in class AbstractBinaryOutputpublic void closeWrite()
closeWrite in interface BinaryOutputcloseWrite in class AbstractBinaryOutputpublic void close()
close in interface BinaryOutputclose in interface BinaryStreamclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class AbstractBinaryOutputpublic void cleanup()
cleanup in interface EnvCleanuppublic java.lang.String toString()
toString in class java.lang.Objectenv -