Class FileUpload.UploadStream
- java.lang.Object
-
- java.io.InputStream
-
- net.sf.basedb.clients.web.fileupload.FileUpload.UploadStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- FileUpload
private class FileUpload.UploadStream extends InputStream
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
buffer
private int
end
private byte[]
nextBuffer
private int
nextEnd
private int
start
-
Constructor Summary
Constructors Modifier Constructor Description private
UploadStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.io.InputStream
close, nullInputStream, readAllBytes, readNBytes, readNBytes, skip, transferTo
-
-
-
-
Constructor Detail
-
UploadStream
private UploadStream() throws IOException
- Throws:
IOException
-
-
Method Detail
-
available
public int available() throws IOException
- Overrides:
available
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit)
Not supported.- Overrides:
mark
in classInputStream
-
markSupported
public boolean markSupported()
Not supported.- Overrides:
markSupported
in classInputStream
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] b) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
reset
public void reset() throws IOException
Not supported.- Overrides:
reset
in classInputStream
- 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
-
-