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
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, skipNBytes, transferTo
-
Field Details
-
buffer
private byte[] buffer -
nextBuffer
private byte[] nextBuffer -
start
private int start -
end
private int end -
nextEnd
private int nextEnd
-
-
Constructor Details
-
UploadStream
- Throws:
IOException
-
-
Method Details
-
available
- 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
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
reset
Not supported.- Overrides:
reset
in classInputStream
- Throws:
IOException
-
readMoreData
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
-