public class TokenSampleStream extends FilterObjectStream<String,TokenSample>
TokenSamples out of them. The input string sample is tokenized if a whitespace or the special separator chars occur.
"token1 token2 token3<SPLIT>token4"
The tokens token1 and token2 are separated by a whitespace, token3 and token3 are separated by the special character sequence, in this case the default split sequence.
The sequence must be unique in the input string and is not escaped.
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns the next object.
public TokenSampleStream(ObjectStream<String> sampleStrings, String separatorChars)
public TokenSample read() throws IOException
IOException- if there is an error during reading
Copyright © 2017 The Apache Software Foundation. All rights reserved.