se.l4.commons.config.internal.streaming.ListInput Maven / Gradle / Ivy
The newest version!
package se.l4.commons.config.internal.streaming;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import se.l4.commons.serialization.format.AbstractStreamingInput;
import se.l4.commons.serialization.format.StreamingInput;
import se.l4.commons.serialization.format.Token;
/**
* Input that works on lists.
*
* @author Andreas Holstenson
*
*/
public class ListInput
extends AbstractStreamingInput
{
private enum State
{
START,
VALUE,
END,
DONE
}
private State state;
private State previousState;
private Iterator