public class StringAcceptor extends AbstractIntAcceptor<String>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_INITIAL_CAPACITY |
| Constructor and Description |
|---|
StringAcceptor() |
StringAcceptor(int initialCapacity) |
| 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 object (default implementation throws exception).
|
int |
length() |
acceptclose, isClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, accept, accept, acceptflush, isClosed, isCompleteclosepublic static final int DEFAULT_INITIAL_CAPACITY
public StringAcceptor(int initialCapacity)
public StringAcceptor()
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()
BaseAbstractAcceptorgetResult in interface BaseAcceptor<String>getResult in class BaseAbstractAcceptor<String>public int length()
public void clear()
Copyright © 2020. All rights reserved.