|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.io.OutputStream
com.google.protobuf.ByteString.Output
public static final class ByteString.Output
Outputs to a ByteString instance. Call toByteString() to
create the ByteString instance.
| Method Summary | |
|---|---|
void |
reset()
Resets this stream, so that all currently accumulated output in the output stream is discarded. |
int |
size()
Returns the current size of the output stream. |
ByteString |
toByteString()
Creates a byte string. |
java.lang.String |
toString()
|
void |
write(byte[] b,
int offset,
int length)
|
void |
write(int b)
|
void |
writeTo(java.io.OutputStream out)
Writes the complete contents of this byte array output stream to the specified output stream argument. |
| Methods inherited from class java.io.OutputStream |
|---|
close, flush, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void write(int b)
write in class java.io.OutputStream
public void write(byte[] b,
int offset,
int length)
write in class java.io.OutputStreampublic ByteString toByteString()
public void writeTo(java.io.OutputStream out)
throws java.io.IOException
out - the output stream to which to write the data.
java.io.IOException - if an I/O error occurs.public int size()
public void reset()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||