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
-
Field Summary
Modifier and TypeFieldDescriptionprivate byte[]
private int
private byte[]
private int
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
mark
(int readlimit) Not supported.boolean
Not supported.int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) private int
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
-