private Token contructToken(byte type) { switch (type) { case Token.TYPE_START_NODE: return new StartNode(); case Token.TYPE_MAP_ID_TO_VALUE: return new MapIdToValue(); case Token.TYPE_ATTRIBUTE: return new Attribute(); case Token.TYPE_END_NODE: return new EndNode(); case Token.TYPE_VALUE: return new Value(); default: throw new StreamException("Unknown token type"); } } }
public void readFrom(DataInput in, byte idType) throws IOException { value = readString(in); }
public void writeTo(DataOutput out, byte idType) throws IOException { writeString(out, value); }
private Token contructToken(byte type) { switch (type) { case Token.TYPE_START_NODE: return new StartNode(); case Token.TYPE_MAP_ID_TO_VALUE: return new MapIdToValue(); case Token.TYPE_ATTRIBUTE: return new Attribute(); case Token.TYPE_END_NODE: return new EndNode(); case Token.TYPE_VALUE: return new Value(); default: throw new StreamException("Unknown token type"); } } }
private Token contructToken(byte type) { switch (type) { case Token.TYPE_START_NODE: return new StartNode(); case Token.TYPE_MAP_ID_TO_VALUE: return new MapIdToValue(); case Token.TYPE_ATTRIBUTE: return new Attribute(); case Token.TYPE_END_NODE: return new EndNode(); case Token.TYPE_VALUE: return new Value(); default: throw new StreamException("Unknown token type"); } } }
private Token contructToken(byte type) { switch (type) { case Token.TYPE_START_NODE: return new StartNode(); case Token.TYPE_MAP_ID_TO_VALUE: return new MapIdToValue(); case Token.TYPE_ATTRIBUTE: return new Attribute(); case Token.TYPE_END_NODE: return new EndNode(); case Token.TYPE_VALUE: return new Value(); default: throw new StreamException("Unknown token type"); } } }
private Token contructToken(byte type) { switch (type) { case Token.TYPE_START_NODE: return new StartNode(); case Token.TYPE_MAP_ID_TO_VALUE: return new MapIdToValue(); case Token.TYPE_ATTRIBUTE: return new Attribute(); case Token.TYPE_END_NODE: return new EndNode(); case Token.TYPE_VALUE: return new Value(); default: throw new StreamException("Unknown token type"); } } }
private Token contructToken(byte type) { switch (type) { case Token.TYPE_START_NODE: return new StartNode(); case Token.TYPE_MAP_ID_TO_VALUE: return new MapIdToValue(); case Token.TYPE_ATTRIBUTE: return new Attribute(); case Token.TYPE_END_NODE: return new EndNode(); case Token.TYPE_VALUE: return new Value(); default: throw new StreamException("Unknown token type"); } } }
private Token contructToken(byte type) { switch (type) { case Token.TYPE_START_NODE: return new StartNode(); case Token.TYPE_MAP_ID_TO_VALUE: return new MapIdToValue(); case Token.TYPE_ATTRIBUTE: return new Attribute(); case Token.TYPE_END_NODE: return new EndNode(); case Token.TYPE_VALUE: return new Value(); default: throw new StreamException("Unknown token type"); } } }
public void setValue(String text) { write(new Token.Value(text)); }
private Token contructToken(final byte type) { switch (type) { case Token.TYPE_START_NODE: return new StartNode(); case Token.TYPE_MAP_ID_TO_VALUE: return new MapIdToValue(); case Token.TYPE_ATTRIBUTE: return new Attribute(); case Token.TYPE_END_NODE: return new EndNode(); case Token.TYPE_VALUE: return new Value(); default: throw new StreamException("Unknown token type"); } } }
public void readFrom(DataInput in, byte idType) throws IOException { value = readString(in); }
public void readFrom(DataInput in, byte idType) throws IOException { value = readString(in); }
public void setValue(String text) { write(new Token.Value(text)); }
public void readFrom(DataInput in, byte idType) throws IOException { value = readString(in); }
public void writeTo(DataOutput out, byte idType) throws IOException { writeString(out, value); }
public void readFrom(DataInput in, byte idType) throws IOException { value = readString(in); }
public void writeTo(DataOutput out, byte idType) throws IOException { writeString(out, value); }
public void setValue(String text) { write(new Token.Value(text)); }
public void writeTo(DataOutput out, byte idType) throws IOException { writeString(out, value); }