Package | Description |
---|---|
wjhk.jupload2.exception |
Some application specific exceptions.
|
wjhk.jupload2.filedata |
This package allows you to change the file relative behaviour: this page describes how to override the
default behaviour, to fullfill your needs (for instance add data compression, preload check, new data
about files in the upload to the server..
|
wjhk.jupload2.filedata.helper | |
wjhk.jupload2.gui |
Implementation of caching and special algorithms for various file types.
|
wjhk.jupload2.gui.filepanel.treeview | |
wjhk.jupload2.policies |
This package contains the upload policies: they give you hook entry points, to override the default applet behaviour
with a minimum of java code.
|
wjhk.jupload2.upload |
This package contains the code that actually executes the upload (see below for a full description of the way the upload
is executed in the JUpload code).
|
wjhk.jupload2.upload.helper |
Modifier and Type | Class and Description |
---|---|
class |
JUploadEOFException
This error is thrown, when the socket used to read bytes from the server is
closed.
|
Modifier and Type | Method and Description |
---|---|
void |
FileData.appendFileProperties(ByteArrayEncoder bae,
int index)
Called during the upload, by the
FileUploadThread . |
void |
DefaultFileData.appendFileProperties(ByteArrayEncoder bae,
int index)
Called during the upload, by the
FileUploadThread . |
int |
PictureFileData.getOriginalHeight() |
int |
PictureFileData.getOriginalWidth() |
File |
PictureFileData.getWorkingSourceFile()
Get the file that contains the original picture.
|
Constructor and Description |
---|
PictureFileData(File file,
PictureUploadPolicy uploadPolicy)
Standard constructor: needs a PictureFileDataPolicy.
|
Modifier and Type | Method and Description |
---|---|
void |
ImageReaderWriterHelper.dispose()
Free all reserved resource by this helper.
|
IIOMetadata |
ImageReaderWriterHelper.getImageMetadata(int imageIndex)
Load the metadata associated with one picture in the picture file.
|
int |
ImageReaderWriterHelper.getNumImages(boolean allowSearch)
Call to imageReader.getNumImages(boolean).
|
IIOImage |
ImageReaderWriterHelper.readAll(int imageIndex)
Read an image, from the pictureFileData.
|
BufferedImage |
ImageReaderWriterHelper.readImage(int imageIndex)
Read an image, from the pictureFileData.
|
void |
ImageReaderWriterHelper.setOutput(File file)
Creates a FileImageOutputStream, and assign it as the output to the imageWriter.
|
void |
ImageReaderWriterHelper.write(IIOImage iioImage)
Write a picture in the output picture file.
|
void |
ImageReaderWriterHelper.writeInsert(int numIndex,
IIOImage iioImage,
ImageWriteParam iwp)
Write a picture in the output picture file.
|
Constructor and Description |
---|
ImageHelper(PictureUploadPolicy uploadPolicy,
PictureFileData pictureFileData,
int targetMaxWidth,
int targetMaxHeight,
int quarterRotation)
Standard constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
DebugDialog.setText(JEditorPane editorPane,
String text)
Set the text to display.
|
Constructor and Description |
---|
DebugDialog(Frame owner,
String text,
UploadPolicy uploadPolicy)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
FolderNode.appendFileProperties(ByteArrayEncoder bae,
int index)
Called during the upload, by the
FileUploadThread . |
void |
FileDataNode.appendFileProperties(ByteArrayEncoder bae,
int index) |
Modifier and Type | Method and Description |
---|---|
ByteArrayEncoder |
UploadPolicy.onAppendHeader(ByteArrayEncoder sb)
Append specific headers for this upload (session cookies, for instance).
|
ByteArrayEncoder |
DefaultUploadPolicy.onAppendHeader(ByteArrayEncoder bae) |
Modifier and Type | Method and Description |
---|---|
void |
UploadFileData.appendFileProperties(ByteArrayEncoder bae,
int index)
Called during the upload, by the
FileUploadThread . |
Modifier and Type | Method and Description |
---|---|
HTTPConnectionHelper |
HTTPConnectionHelper.append(byte[] bytes)
Append bytes to the current query.
|
ByteArrayEncoder |
ByteArrayEncoderHTTP.append(byte[] b)
Append a stream, to be encoded at the current end of the byte array.
|
ByteArrayEncoder |
ByteArrayEncoder.append(byte[] b)
Append a stream, to be encoded at the current end of the byte array.
|
HTTPConnectionHelper |
HTTPConnectionHelper.append(byte[] bytes,
int off,
int len)
Append bytes to the current query.
|
HTTPConnectionHelper |
HTTPConnectionHelper.append(ByteArrayEncoder bae)
Appends a string to the current HTTP request.
|
ByteArrayEncoder |
ByteArrayEncoderHTTP.append(ByteArrayEncoder bae)
Append a string, to be encoded at the current end of the byte array.
|
ByteArrayEncoder |
ByteArrayEncoder.append(ByteArrayEncoder bae)
Append a string, to be encoded at the current end of the byte array.
|
HTTPConnectionHelper |
HTTPConnectionHelper.append(int b)
Append bytes to the current query.
|
ByteArrayEncoder |
ByteArrayEncoderHTTP.append(int b)
Append a byte, to be encoded at the current end of the byte array. he
byte to be written is the eight low-order bits of the argument b.
|
ByteArrayEncoder |
ByteArrayEncoder.append(int b)
Append a byte, to be encoded at the current end of the byte array. he
byte to be written is the eight low-order bits of the argument b.
|
HTTPConnectionHelper |
HTTPConnectionHelper.append(String str)
write a string to the current HTTP request.
|
ByteArrayEncoder |
ByteArrayEncoderHTTP.append(String str)
Append a string, to be encoded at the current end of the byte array.
|
ByteArrayEncoder |
ByteArrayEncoder.append(String str)
Append a string, to be encoded at the current end of the byte array.
|
ByteArrayEncoder |
ByteArrayEncoderHTTP.appendEndPropertyList()
Finish a property list.
|
ByteArrayEncoder |
ByteArrayEncoder.appendEndPropertyList()
Finish a property list.
|
ByteArrayEncoder |
ByteArrayEncoderHTTP.appendFormVariables(String formname)
Add to the current encoder all properties contained in the given HTML
form.
|
ByteArrayEncoder |
ByteArrayEncoder.appendFormVariables(String formname)
Add to the current encoder all properties contained in the given HTML
form.
|
ByteArrayEncoder |
ByteArrayEncoderHTTP.appendTextProperty(String name,
String value,
int index)
Append a property, name and value.
|
ByteArrayEncoder |
ByteArrayEncoder.appendTextProperty(String name,
String value,
int index)
Append a property, name and value.
|
void |
ByteArrayEncoderHTTP.close() |
void |
ByteArrayEncoder.close()
Closes the encoding writer, and prepares the encoded length and byte
array.
|
void |
HTTPConnectionHelper.dispose()
Releases all reserved resources.
|
ByteArrayEncoder |
HTTPConnectionHelper.getByteArrayEncoder()
Return the current
ByteArrayEncoder . |
byte[] |
ByteArrayEncoderHTTP.getEncodedByteArray()
Get the encoded result.
|
byte[] |
ByteArrayEncoder.getEncodedByteArray()
Get the encoded result.
|
int |
ByteArrayEncoderHTTP.getEncodedLength()
Get the length of the encoded result.
|
int |
ByteArrayEncoder.getEncodedLength()
Get the length of the encoded result.
|
String |
ByteArrayEncoderHTTP.getString()
Get the String that matches the encoded result.
|
String |
ByteArrayEncoder.getString()
Get the String that matches the encoded result.
|
void |
HTTPConnectionHelper.initRequest(URL url,
String method,
boolean bChunkEnabled,
boolean bLastChunk)
The standard constructor for this class.
|
void |
HTTPConnectionHelper.sendRequest()
Closes the byteArrayEncoder, create the socket (or not, depending on the current uploadPolicy, and upload
history), send the request, and create the InputStream to read the server response.
|
Constructor and Description |
---|
ByteArrayEncoderHTTP(UploadPolicy uploadPolicy)
Create an encoder, using the DEFAULT_ENCODING encoding.
|
ByteArrayEncoderHTTP(UploadPolicy uploadPolicy,
String bound)
Create an encoder, and specifies the encoding to use.
|
ByteArrayEncoderHTTP(UploadPolicy uploadPolicy,
String bound,
String encoding)
Create an encoder, and specifies the boundary and encoding to use.
|
HTTPConnectionHelper(URL url,
String method,
boolean bChunkEnabled,
boolean bLastChunk,
UploadPolicy uploadPolicy)
The standard constructor for this class.
|
Copyright © 2015. All rights reserved.