|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
javax.servlet.ServletInputStream
com.wewebu.ow.server.util.upload.OwBufferedServletInputStream
public class OwBufferedServletInputStream
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 Summary | |
|---|---|
OwBufferedServletInputStream(javax.servlet.ServletInputStream in_p)
Creates a BufferedServletInputStream that wraps
ServletInputStream. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.io.InputStream |
|---|
available, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OwBufferedServletInputStream(javax.servlet.ServletInputStream in_p)
BufferedServletInputStream that wraps
ServletInputStream.
in_p - a servlet input stream.| Method Detail |
|---|
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 class InputStreamIOExceptionInputStream.close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||