org.apache.axis.utils
public class ByteArray extends OutputStream
Field Summary | |
---|---|
protected File | bs_handle |
protected OutputStream | bs_stream |
protected ByteArrayOutputStream | cache |
protected long | count |
protected static double | DEFAULT_CACHE_INCREMENT |
protected static boolean | DEFAULT_ENABLE_BACKING_STORE |
protected static int | DEFAULT_RESIDENT_SIZE |
protected boolean | enableBackingStore |
protected int | max_size |
protected static int | WORKING_BUFFER_SIZE |
Constructor Summary | |
---|---|
ByteArray()
Constructor ByteArray | |
ByteArray(int max_resident_size)
Constructor ByteArray
| |
ByteArray(int probable_size, int max_resident_size)
Constructor ByteArray
|
Method Summary | |
---|---|
void | close()
Method close
|
protected InputStream | createBackingStoreInputStream()
Method createBackingStoreInputStream
|
protected void | discardBackingStore()
Method discardBackingStore |
void | discardBuffer()
Method discardBuffer |
protected void | finalize()
Method finalize |
void | flush()
Method flush
|
String | getBackingStoreFileName()
Method getBackingStoreFileName
|
static double | getDEFAULT_CACHE_INCREMENT() |
static int | getDEFAULT_RESIDENT_SIZE() |
protected void | increaseCapacity(int count)
Method increaseCapacity
|
static boolean | isDEFAULT_ENABLE_BACKING_STORE() |
boolean | isEnableBackingStore() |
protected InputStream | makeInputStream()
Method makeInputStream
|
static void | setDEFAULT_CACHE_INCREMENT(double DEFAULT_CACHE_INCREMENT) |
static void | setDEFAULT_ENABLE_BACKING_STORE(boolean DEFAULT_ENABLE_BACKING_STORE) |
static void | setDEFAULT_RESIDENT_SIZE(int DEFAULT_RESIDENT_SIZE) |
void | setEnableBackingStore(boolean enableBackingStore) |
long | size()
Method size
|
protected void | switchToBackingStore()
Method switchToBackingStore
|
byte[] | toByteArray()
Method toByteArray
|
void | write(byte[] bytes)
Method write
|
void | write(byte[] bytes, int start, int length)
Method write
|
void | write(int b)
Method write
|
void | writeTo(OutputStream os)
Method writeTo
|
Parameters: max_resident_size
Parameters: probable_size max_resident_size
Throws: IOException
Returns:
Throws: FileNotFoundException
Throws: IOException
Throws: IOException
Parameters: count
Throws: IOException
Returns:
Throws: IOException FileNotFoundException
Returns:
Throws: IOException
Returns:
Throws: IOException
Parameters: bytes
Throws: IOException
Parameters: bytes start length
Throws: IOException
Parameters: b
Throws: IOException
Parameters: os
Throws: IOException