org.apache.axis.utils
Class ByteArray

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.apache.axis.utils.ByteArray

public class ByteArray
extends java.io.OutputStream

Class ByteArray


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
 void discardBuffer()
          Method discardBuffer
 void flush()
          Method flush
 java.lang.String getBackingStoreFileName()
          Method getBackingStoreFileName
static double getDEFAULT_CACHE_INCREMENT()
           
static int getDEFAULT_RESIDENT_SIZE()
           
static boolean isDEFAULT_ENABLE_BACKING_STORE()
           
 boolean isEnableBackingStore()
           
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
 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(java.io.OutputStream os)
          Method writeTo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArray

public ByteArray()
Constructor ByteArray


ByteArray

public ByteArray(int max_resident_size)
Constructor ByteArray

Parameters:
max_resident_size -

ByteArray

public ByteArray(int probable_size,
                 int max_resident_size)
Constructor ByteArray

Parameters:
probable_size -
max_resident_size -
Method Detail

isEnableBackingStore

public boolean isEnableBackingStore()

setEnableBackingStore

public void setEnableBackingStore(boolean enableBackingStore)

isDEFAULT_ENABLE_BACKING_STORE

public static boolean isDEFAULT_ENABLE_BACKING_STORE()

setDEFAULT_ENABLE_BACKING_STORE

public static void setDEFAULT_ENABLE_BACKING_STORE(boolean DEFAULT_ENABLE_BACKING_STORE)

getDEFAULT_RESIDENT_SIZE

public static int getDEFAULT_RESIDENT_SIZE()

setDEFAULT_RESIDENT_SIZE

public static void setDEFAULT_RESIDENT_SIZE(int DEFAULT_RESIDENT_SIZE)

getDEFAULT_CACHE_INCREMENT

public static double getDEFAULT_CACHE_INCREMENT()

setDEFAULT_CACHE_INCREMENT

public static void setDEFAULT_CACHE_INCREMENT(double DEFAULT_CACHE_INCREMENT)

write

public void write(byte[] bytes)
           throws java.io.IOException
Method write

Parameters:
bytes -
Throws:
java.io.IOException

write

public void write(byte[] bytes,
                  int start,
                  int length)
           throws java.io.IOException
Method write

Parameters:
bytes -
start -
length -
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Method write

Parameters:
b -
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Method close

Throws:
java.io.IOException

size

public long size()
Method size

Returns:

flush

public void flush()
           throws java.io.IOException
Method flush

Throws:
java.io.IOException

discardBuffer

public void discardBuffer()
Method discardBuffer


getBackingStoreFileName

public java.lang.String getBackingStoreFileName()
                                         throws java.io.IOException
Method getBackingStoreFileName

Throws:
java.io.IOException

toByteArray

public byte[] toByteArray()
                   throws java.io.IOException
Method toByteArray

Returns:
Throws:
java.io.IOException

writeTo

public void writeTo(java.io.OutputStream os)
             throws java.io.IOException
Method writeTo

Parameters:
os -
Throws:
java.io.IOException


Copyright © 2003 Apache Web Services Project. A ll Rights Reserved.