com.davecoss.uploader
public class UploadOutputStream extends java.io.OutputStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
bufferSize |
protected HTTPSClient |
client |
static int |
DEFAULT_BUFFER_SIZE |
protected java.lang.String |
destinationURL |
| Constructor and Description |
|---|
UploadOutputStream(HTTPSClient client,
java.lang.String destinationURL) |
UploadOutputStream(java.lang.String baseFilename,
HTTPSClient client,
java.lang.String destinationURL) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
int |
getBufferSize() |
WebResponse |
getUploadResponse() |
int |
setBufferSize(int newsize) |
protected WebResponse |
uploadFile(java.io.File file) |
void |
write(byte[] buf,
int offset,
int len) |
void |
write(int b) |
public static final int DEFAULT_BUFFER_SIZE
protected HTTPSClient client
protected java.lang.String destinationURL
protected int bufferSize
public UploadOutputStream(HTTPSClient client, java.lang.String destinationURL) throws java.io.IOException
java.io.IOExceptionpublic UploadOutputStream(java.lang.String baseFilename,
HTTPSClient client,
java.lang.String destinationURL)
throws java.io.IOException
java.io.IOExceptionpublic int setBufferSize(int newsize)
public int getBufferSize()
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] buf,
int offset,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionprotected WebResponse uploadFile(java.io.File file) throws java.io.IOException
java.io.IOExceptionpublic WebResponse getUploadResponse()
Last build: 2014-03-11 10:00 Copyright © 2013 David Coss. All Rights Reserved.