com.lutris.appserver.server.httpPresentation
Class HttpPresentationInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--com.lutris.appserver.server.httpPresentation.HttpPresentationInputStream
- public abstract class HttpPresentationInputStream
- extends java.io.InputStream
HTTP request input stream reader.
Method Summary |
void |
close()
|
abstract int |
readLine(byte[] b,
int off,
int len)
Starting at the specified offset, reads into the given array of
bytes until all requested bytes have been read or a '\n' is
encountered, in which case the '\n' is read into the array as well. |
Methods inherited from class java.io.InputStream |
available,
mark,
markSupported,
read,
read,
read,
reset,
skip |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
HttpPresentationInputStream
public HttpPresentationInputStream()
readLine
public abstract int readLine(byte[] b,
int off,
int len)
throws java.io.IOException
- Starting at the specified offset, reads into the given array of
bytes until all requested bytes have been read or a '\n' is
encountered, in which case the '\n' is read into the array as well.
- Parameters:
b
- the buffer into which the data is readoff
- the start offset of the datalen
- the maximum number of bytes to read- Returns:
- the actual number of bytes read, or -1 if the end of the
stream is reached
- Throws:
- java.io.IOException - if an I/O error has occurred
close
public void close()
throws java.io.IOException
- Overrides:
- close in class java.io.InputStream