org.tanukisoftware.wrapper
Class WrapperProcessInputStream
java.lang.Object
java.io.InputStream
org.tanukisoftware.wrapper.WrapperProcessInputStream
- All Implemented Interfaces:
- Closeable
public class WrapperProcessInputStream
- extends InputStream
The InputStream Class of a WrapperProcess, representing all the data the
ChildProcess writes to the Wrapper.
- Since:
- Wrapper 3.4.0
- Author:
- Christian Mueller
Method Summary |
void |
close()
Closes the InputStream |
boolean |
markSupported()
|
int |
read()
Read a character from the Stream and moves the position in the stream |
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
boolean |
ready()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
close
public void close()
throws IOException
- Closes the InputStream
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStream
- Throws:
IOException
- in case of any file errors
WrapperLicenseError
- If the function is called other than in
the Professional Edition or from a Standalone JVM.
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class InputStream
ready
public boolean ready()
read
public int read()
throws IOException
- Read a character from the Stream and moves the position in the stream
- Specified by:
read
in class InputStream
- Returns:
- single sign from the stream
- Throws:
IOException
- in case the stream has been already closed or any other file error
WrapperLicenseError
- If the function is called other than in
the Professional Edition or from a Standalone JVM.
read
public int read(byte[] b)
throws IOException
- Overrides:
read
in class InputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read
in class InputStream
- Throws:
IOException
Copyright 1999, 2010 Tanuki Software Inc., All Rights Reserved.