Groovy Documentation

org.jdesktop.html.form
[Java] Class FormRequest.MultipartInputStream

java.lang.Object
  java.io.InputStream
      org.jdesktop.html.form.FormRequest.MultipartInputStream

private static final class FormRequest.MultipartInputStream
extends InputStream

This InputStream allows me to construct and return an InputStream which will be efficient in terms of memory usage with large numbers of files, or with large files. The actual input stream to the files are not opened until necessary.


Field Summary
private List chunks

private InputStream file

private int index

private String string

 
Constructor Summary
FormRequest.MultipartInputStream(List chunks)

 
Method Summary
int read()

 
Methods inherited from class InputStream
close, mark, reset, read, read, read, skip, available, markSupported, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

chunks

private List chunks


file

private InputStream file


index

private int index


string

private String string


 
Constructor Detail

FormRequest.MultipartInputStream

public FormRequest.MultipartInputStream(List chunks)


 
Method Detail

read

}
public int read()


 

Groovy Documentation