|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
com.sun.xml.messaging.saaj.util.ByteOutputStream
public final class ByteOutputStream
Customized BufferedOutputStream
.
Compared to BufferedOutputStream
,
this class:
Field Summary | |
---|---|
protected byte[] |
buf
The buffer where data is stored. |
protected int |
count
The number of valid bytes in the buffer. |
Constructor Summary | |
---|---|
ByteOutputStream()
|
|
ByteOutputStream(int size)
|
Method Summary | |
---|---|
void |
close()
|
byte[] |
getBytes()
|
int |
getCount()
|
ByteInputStream |
newInputStream()
|
void |
reset()
|
int |
size()
|
byte[] |
toByteArray()
Deprecated. because this is evil! |
java.lang.String |
toString()
Converts the buffer's contents into a string, translating bytes into characters according to the platform's default character encoding. |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(java.io.InputStream in)
Copies all the bytes from this input into this buffer. |
void |
write(int b)
|
void |
writeAsAscii(java.lang.String s)
Writes a string as ASCII string. |
void |
writeTo(java.io.OutputStream out)
|
Methods inherited from class java.io.OutputStream |
---|
flush |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected byte[] buf
protected int count
Constructor Detail |
---|
public ByteOutputStream()
public ByteOutputStream(int size)
Method Detail |
---|
public void write(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public void write(int b)
write
in class java.io.OutputStream
public void write(byte[] b, int off, int len)
write
in class java.io.OutputStream
public void write(byte[] b)
write
in class java.io.OutputStream
public void writeAsAscii(java.lang.String s)
public void writeTo(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public void reset()
public byte[] toByteArray()
public int size()
public ByteInputStream newInputStream()
public java.lang.String toString()
toString
in class java.lang.Object
public void close()
close
in interface java.io.Closeable
close
in class java.io.OutputStream
public byte[] getBytes()
public int getCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |