Constructor and Description |
---|
AbstractStreamEncoder(WritableByteChannel out) |
Modifier and Type | Method and Description |
---|---|
void |
encode(CharsetEncoder encoder,
ByteBuffer result,
E operation,
RunMode runMode,
Long testRunId,
String... messages) |
void |
encode(CharsetEncoder encoder,
ByteBuffer result,
E operation,
String... messages) |
void |
encodeCharset(ByteBuffer result) |
void |
encodeHeader(ByteBuffer result,
E operation) |
void |
encodeHeader(ByteBuffer result,
E operation,
RunMode runMode,
Long testRunId) |
void |
encodeInteger(ByteBuffer result,
Integer i) |
void |
encodeString(CharsetEncoder encoder,
ByteBuffer result,
String string) |
protected abstract byte[] |
enumToByteArray(E e) |
int |
estimateBufferLength(int opcodeLength,
RunMode runMode,
CharsetEncoder encoder,
int integersCounter,
int longsCounter,
String... strings) |
protected abstract Charset |
getCharset() |
protected abstract byte[] |
getEncodedCharsetName() |
protected abstract byte[] |
getEncodedMagicNumber() |
protected abstract CharsetEncoder |
newCharsetEncoder() |
protected void |
write(ByteBuffer frame,
boolean sendImmediately) |
public AbstractStreamEncoder(WritableByteChannel out)
@Nonnull protected abstract byte[] getEncodedMagicNumber()
@Nonnull protected abstract byte[] getEncodedCharsetName()
@Nonnull protected abstract CharsetEncoder newCharsetEncoder()
protected void write(ByteBuffer frame, boolean sendImmediately) throws IOException
IOException
public void encodeHeader(ByteBuffer result, E operation, RunMode runMode, Long testRunId)
public void encodeHeader(ByteBuffer result, E operation)
public void encodeCharset(ByteBuffer result)
public void encodeString(CharsetEncoder encoder, ByteBuffer result, String string)
public void encodeInteger(ByteBuffer result, Integer i)
public void encode(CharsetEncoder encoder, ByteBuffer result, E operation, RunMode runMode, Long testRunId, String... messages)
public void encode(CharsetEncoder encoder, ByteBuffer result, E operation, String... messages)
public int estimateBufferLength(int opcodeLength, RunMode runMode, CharsetEncoder encoder, int integersCounter, int longsCounter, String... strings)
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.