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.IOException
public UploadOutputStream(java.lang.String baseFilename, HTTPSClient client, java.lang.String destinationURL) throws java.io.IOException
java.io.IOException
public int setBufferSize(int newsize)
public int getBufferSize()
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] buf, int offset, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
protected WebResponse uploadFile(java.io.File file) throws java.io.IOException
java.io.IOException
public WebResponse getUploadResponse()
Last build: 2014-03-11 10:00 Copyright © 2013 David Coss. All Rights Reserved.