public class PopenOutput extends AbstractBinaryOutput implements EnvCleanup
SEEK_CUR, SEEK_END, SEEK_SET
Constructor and Description |
---|
PopenOutput(Env env,
java.lang.Process process) |
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.
|
int |
pclose() |
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, write
public PopenOutput(Env env, java.lang.Process process) throws java.io.IOException
java.io.IOException
public java.io.OutputStream getOutputStream()
getOutputStream
in interface BinaryOutput
getOutputStream
in class AbstractBinaryOutput
public void print(char v) throws java.io.IOException
print
in interface BinaryOutput
print
in class AbstractBinaryOutput
java.io.IOException
public void print(java.lang.String v) throws java.io.IOException
print
in interface BinaryOutput
print
in class AbstractBinaryOutput
java.io.IOException
public void write(int ch) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] buffer, int offset, int length) throws java.io.IOException
write
in interface BinaryOutput
write
in class java.io.OutputStream
java.io.IOException
public void flush()
flush
in interface BinaryOutput
flush
in interface java.io.Flushable
flush
in class AbstractBinaryOutput
public void closeWrite()
closeWrite
in interface BinaryOutput
closeWrite
in class AbstractBinaryOutput
public int pclose()
public void close()
close
in interface BinaryOutput
close
in interface BinaryStream
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class AbstractBinaryOutput
public void cleanup()
cleanup
in interface EnvCleanup
public java.lang.String toString()
toString
in class java.lang.Object
env
-