public class ProcOpenInput extends ReadStreamInput implements EnvCleanup
SEEK_CUR, SEEK_END, SEEK_SET| Constructor and Description |
|---|
ProcOpenInput(Env env,
java.io.InputStream in) |
ProcOpenInput(Env env,
java.io.InputStream in,
FileOutput out) |
| 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.
|
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, writeToStreampublic ProcOpenInput(Env env, java.io.InputStream in) throws java.io.IOException
java.io.IOExceptionpublic ProcOpenInput(Env env, java.io.InputStream in, FileOutput out)
public BinaryInput openCopy() throws java.io.IOException
openCopy in interface BinaryInputopenCopy in class ReadStreamInputjava.io.IOExceptionpublic long getLength()
public java.lang.String toString()
toString in class ReadStreamInputpublic void close()
ReadStreamInputclose in interface BinaryInputclose in interface BinaryStreamclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class ReadStreamInputpublic void cleanup()
cleanup in interface EnvCleanup