net.sf.basedb.clients.web.fileupload
Class FileUpload.UploadStream
java.lang.Object
java.io.InputStream
net.sf.basedb.clients.web.fileupload.FileUpload.UploadStream
- All Implemented Interfaces:
- Closeable
- Enclosing class:
- FileUpload
private class FileUpload.UploadStream
- extends InputStream
Method Summary |
int |
available()
|
void |
mark(int readlimit)
Not supported. |
boolean |
markSupported()
Not supported. |
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
private int |
readMoreData()
Read the next line from the ServletInputStream until
the boundary is found on a line by itself. |
void |
reset()
Not supported. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
private byte[] buffer
nextBuffer
private byte[] nextBuffer
start
private int start
end
private int end
nextEnd
private int nextEnd
FileUpload.UploadStream
private FileUpload.UploadStream()
throws IOException
- Throws:
IOException
available
public int available()
throws IOException
- Overrides:
available
in class InputStream
- Throws:
IOException
mark
public void mark(int readlimit)
- Not supported.
- Overrides:
mark
in class InputStream
markSupported
public boolean markSupported()
- Not supported.
- Overrides:
markSupported
in class InputStream
read
public int read()
throws IOException
- Specified by:
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
read
public int read(byte[] b)
throws IOException
- Overrides:
read
in class InputStream
- Throws:
IOException
reset
public void reset()
throws IOException
- Not supported.
- Overrides:
reset
in class InputStream
- Throws:
IOException
readMoreData
private int readMoreData()
throws IOException,
UploadAbortedException
- Read the next line from the ServletInputStream until
the boundary is found on a line by itself. This method is used to read data
from file upload fields.
- Throws:
IOException
UploadAbortedException