|
||||||||||
| 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! |
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(InputStream in)
Copies all the bytes from this input into this buffer. |
void |
write(int b)
|
void |
writeAsAscii(String s)
Writes a string as ASCII string. |
void |
writeTo(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(InputStream in) throws IOException
IOExceptionpublic void write(int b)
write in class OutputStream
public void write(byte[] b,
int off,
int len)
write in class OutputStreampublic void write(byte[] b)
write in class OutputStreampublic void writeAsAscii(String s)
public void writeTo(OutputStream out) throws IOException
IOExceptionpublic void reset()
public byte[] toByteArray()
public int size()
public ByteInputStream newInputStream()
public String toString()
public void close()
close in interface Closeableclose in class OutputStreampublic byte[] getBytes()
public int getCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||