public class PopenInput extends ReadStreamInput implements EnvCleanup
SEEK_CUR, SEEK_END, SEEK_SET
Constructor and Description |
---|
PopenInput(Env env,
java.lang.Process process) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Implements the EnvCleanup interface.
|
void |
close()
Closes the file.
|
long |
getLength()
Returns the number of bytes available to be read, 0 if no known.
|
BinaryInput |
openCopy()
Opens a copy.
|
int |
pclose() |
java.lang.String |
toString()
Converts to a string.
|
appendTo, closeRead, getAvailable, getInputStream, getPosition, getResourceType, init, isEOF, read, read, read, read, readLine, readOptionalLinefeed, seek, setEncoding, setPosition, stat, toJavaObject, unread, writeToStream
public PopenInput(Env env, java.lang.Process process) throws java.io.IOException
java.io.IOException
public BinaryInput openCopy() throws java.io.IOException
openCopy
in interface BinaryInput
openCopy
in class ReadStreamInput
java.io.IOException
public long getLength()
public java.lang.String toString()
toString
in class ReadStreamInput
public int pclose()
public void close()
ReadStreamInput
close
in interface BinaryInput
close
in interface BinaryStream
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class ReadStreamInput
public void cleanup()
cleanup
in interface EnvCleanup