public class StringAcceptor extends AbstractIntAcceptor<String>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_INITIAL_CAPACITY |
| Constructor and Description |
|---|
StringAcceptor() |
StringAcceptor(int initialCapacity) |
StringAcceptor(StringBuilder stringBuilder) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptInt(int value)
Accept an
int, after closed check and test for end of data. |
void |
clear() |
String |
getResult()
Get the result of the acceptor.
|
int |
length() |
accept, acceptclose, isClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, accept, accept, accept, accept, accept, accept, accept, acceptflush, isClosed, isComplete, safeClosecloseandThenpublic static final int DEFAULT_INITIAL_CAPACITY
public StringAcceptor(int initialCapacity)
public StringAcceptor()
public StringAcceptor(StringBuilder stringBuilder)
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<String>value - the input valuepublic String getResult()
BaseAcceptorpublic int length()
public void clear()
Copyright © 2025. All rights reserved.