R - the pipeline result typepublic class UTF16_ASCII<R> extends ErrorHandlingIntPipeline<R>
IntPipeline to convert UTF-16 data to ASCII encoding.| Constructor and Description |
|---|
UTF16_ASCII(IntAcceptor<? extends R> downstream) |
UTF16_ASCII(IntAcceptor<? extends R> downstream,
ErrorStrategy errorStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptInt(int value)
Accept an
int, after closed check and test for end of data. |
static byte[] |
convert(String input)
Convert a
String to a byte array using the UTF16_ASCII converter. |
static byte[] |
convert(String input,
ErrorStrategy errorStrategy)
Convert a
String to a byte array using the UTF16_ASCII converter. |
handleErrorclose, emit, flush, getDownstreamaccept, acceptisClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, acceptandThengetResult, isComplete, isStageCompleteisClosed, safeClosepublic UTF16_ASCII(IntAcceptor<? extends R> downstream, ErrorStrategy errorStrategy)
public UTF16_ASCII(IntAcceptor<? extends R> downstream)
public void acceptInt(int value)
AbstractIntAcceptorint, after closed check and test for end of data. Implementing classes must supply an
implementation of this method.acceptInt in class AbstractIntAcceptor<R>value - the input valuepublic static byte[] convert(String input, ErrorStrategy errorStrategy)
String to a byte array using the UTF16_ASCII converter.input - the input as a StringerrorStrategy - the ErrorStrategypublic static byte[] convert(String input)
String to a byte array using the UTF16_ASCII converter.input - the input as a StringCopyright © 2025. All rights reserved.