2.17.2: 2011-06-17

net.sf.basedb.clients.web.fileupload
Class FileUpload.UploadStream

java.lang.Object
  extended by java.io.InputStream
      extended by net.sf.basedb.clients.web.fileupload.FileUpload.UploadStream
All Implemented Interfaces:
Closeable
Enclosing class:
FileUpload

private class FileUpload.UploadStream
extends InputStream


Field Summary
private  byte[] buffer
           
private  int end
           
private  byte[] nextBuffer
           
private  int nextEnd
           
private  int start
           
 
Constructor Summary
private FileUpload.UploadStream()
           
 
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.io.InputStream
close, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

private byte[] buffer

nextBuffer

private byte[] nextBuffer

start

private int start

end

private int end

nextEnd

private int nextEnd
Constructor Detail

FileUpload.UploadStream

private FileUpload.UploadStream()
                         throws IOException
Throws:
IOException
Method Detail

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

2.17.2: 2011-06-17