EAF 7.4 API

com.lutris.appserver.server.httpPresentation
Class HttpPresentationInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.lutris.appserver.server.httpPresentation.HttpPresentationInputStream
All Implemented Interfaces:
java.io.Closeable

public abstract class HttpPresentationInputStream
extends java.io.InputStream

HTTP request input stream reader.


Constructor Summary
HttpPresentationInputStream()
           
 
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
 

Constructor Detail

HttpPresentationInputStream

public HttpPresentationInputStream()
Method Detail

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 read
off - the start offset of the data
len - 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
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException

EAF 7.4 API