public class OwBufferedServletInputStream
extends javax.servlet.ServletInputStream
A BufferedServletInputStream wraps a
ServletInputStream in order to provide input buffering and to
avoid calling the the readLine method of the wrapped
ServletInputStream.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Constructor and Description |
|---|
OwBufferedServletInputStream(javax.servlet.ServletInputStream in_p)
Creates a
BufferedServletInputStream that wraps
ServletInputStream. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close the wrapped stream
|
int |
read()
Implement buffering
read method of
the wrapped ServletInputStream. |
int |
read(byte[] b_p,
int off_p,
int len_p)
Implement buffering
read method of
the wrapped ServletInputStream. |
int |
readLine(byte[] b_p,
int off_p,
int len_p)
Implement buffering
readLine method of
the wrapped ServletInputStream. |
available, mark, markSupported, read, reset, skippublic OwBufferedServletInputStream(javax.servlet.ServletInputStream in_p)
BufferedServletInputStream that wraps
ServletInputStream.in_p - a servlet input stream.public int readLine(byte[] b_p,
int off_p,
int len_p)
throws IOException
readLine method of
the wrapped ServletInputStream.readLine in class javax.servlet.ServletInputStreamb_p - an array of bytes into which data is read.off_p - an integer specifying the character at which
this method begins reading.len_p - an integer specifying the maximum number of
bytes to read.IOException - if an I/O error occurs.public int read()
throws IOException
read method of
the wrapped ServletInputStream.read in class InputStream-1 if the end of the
stream is reached.IOException - if an I/O error occurs.public int read(byte[] b_p,
int off_p,
int len_p)
throws IOException
read method of
the wrapped ServletInputStream.read in class InputStreamb_p - the buffer into which the data is read.off_p - the start offset of the data.len_p - the maximum number of bytes read.-1 if there is no more data because the end
of the stream has been reached.IOException - if an I/O error occurs.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionInputStream.close()Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.