public class HttpEntityDigester
extends java.lang.Object
implements okio.BufferedSink
| Constructor and Description |
|---|
HttpEntityDigester(java.security.MessageDigest digester) |
| Modifier and Type | Method and Description |
|---|---|
okio.Buffer |
buffer() |
void |
close() |
okio.BufferedSink |
emit() |
okio.BufferedSink |
emitCompleteSegments() |
void |
flush() |
okio.Buffer |
getBuffer() |
byte[] |
getDigest() |
boolean |
isOpen() |
java.io.OutputStream |
outputStream() |
okio.Timeout |
timeout() |
void |
write(okio.Buffer source,
long byteCount) |
okio.BufferedSink |
write(byte[] source) |
okio.BufferedSink |
write(byte[] source,
int offset,
int byteCount) |
int |
write(java.nio.ByteBuffer byteBuffer) |
okio.BufferedSink |
write(okio.ByteString byteString) |
okio.BufferedSink |
write(okio.ByteString arg0,
int arg1,
int arg2) |
okio.BufferedSink |
write(okio.Source source,
long byteCount) |
long |
writeAll(okio.Source source) |
okio.BufferedSink |
writeByte(int b) |
okio.BufferedSink |
writeDecimalLong(long v) |
okio.BufferedSink |
writeHexadecimalUnsignedLong(long v) |
okio.BufferedSink |
writeInt(int i) |
okio.BufferedSink |
writeIntLe(int i) |
okio.BufferedSink |
writeLong(long v) |
okio.BufferedSink |
writeLongLe(long v) |
okio.BufferedSink |
writeShort(int s) |
okio.BufferedSink |
writeShortLe(int s) |
okio.BufferedSink |
writeString(java.lang.String string,
java.nio.charset.Charset charset) |
okio.BufferedSink |
writeString(java.lang.String string,
int beginIndex,
int endIndex,
java.nio.charset.Charset charset) |
okio.BufferedSink |
writeUtf8(java.lang.String string) |
okio.BufferedSink |
writeUtf8(java.lang.String string,
int beginIndex,
int endIndex) |
okio.BufferedSink |
writeUtf8CodePoint(int codePoint) |
public HttpEntityDigester(java.security.MessageDigest digester)
public okio.Buffer buffer()
buffer in interface okio.BufferedSinkpublic okio.BufferedSink write(okio.ByteString byteString)
throws java.io.IOException
write in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink write(byte[] source)
throws java.io.IOException
write in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink write(byte[] source,
int offset,
int byteCount)
throws java.io.IOException
write in interface okio.BufferedSinkjava.io.IOExceptionpublic long writeAll(okio.Source source)
throws java.io.IOException
writeAll in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink write(okio.Source source,
long byteCount)
throws java.io.IOException
write in interface okio.BufferedSinkjava.io.IOExceptionpublic void write(okio.Buffer source,
long byteCount)
throws java.io.IOException
write in interface okio.Sinkjava.io.IOExceptionpublic okio.BufferedSink write(okio.ByteString arg0,
int arg1,
int arg2)
throws java.io.IOException
write in interface okio.BufferedSinkjava.io.IOExceptionpublic int write(java.nio.ByteBuffer byteBuffer)
throws java.io.IOException
write in interface java.nio.channels.WritableByteChanneljava.io.IOExceptionpublic okio.BufferedSink writeUtf8(java.lang.String string)
throws java.io.IOException
writeUtf8 in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink writeUtf8(java.lang.String string,
int beginIndex,
int endIndex)
throws java.io.IOException
writeUtf8 in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink writeUtf8CodePoint(int codePoint)
throws java.io.IOException
writeUtf8CodePoint in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink writeString(java.lang.String string,
java.nio.charset.Charset charset)
throws java.io.IOException
writeString in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink writeString(java.lang.String string,
int beginIndex,
int endIndex,
java.nio.charset.Charset charset)
throws java.io.IOException
writeString in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink writeByte(int b)
throws java.io.IOException
writeByte in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink writeShort(int s)
throws java.io.IOException
writeShort in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink writeShortLe(int s)
throws java.io.IOException
writeShortLe in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink writeInt(int i)
throws java.io.IOException
writeInt in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink writeIntLe(int i)
throws java.io.IOException
writeIntLe in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink writeLong(long v)
throws java.io.IOException
writeLong in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink writeLongLe(long v)
throws java.io.IOException
writeLongLe in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink writeDecimalLong(long v)
throws java.io.IOException
writeDecimalLong in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink writeHexadecimalUnsignedLong(long v)
throws java.io.IOException
writeHexadecimalUnsignedLong in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink emitCompleteSegments()
throws java.io.IOException
emitCompleteSegments in interface okio.BufferedSinkjava.io.IOExceptionpublic okio.BufferedSink emit()
throws java.io.IOException
emit in interface okio.BufferedSinkjava.io.IOExceptionpublic java.io.OutputStream outputStream()
outputStream in interface okio.BufferedSinkpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in interface okio.BufferedSinkflush in interface okio.Sinkjava.io.IOExceptionpublic okio.Timeout timeout()
timeout in interface okio.Sinkpublic boolean isOpen()
isOpen in interface java.nio.channels.Channelpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channelclose in interface okio.Sinkjava.io.IOExceptionpublic byte[] getDigest()
public okio.Buffer getBuffer()
getBuffer in interface okio.BufferedSink