org.openbandy.io.stream
Class StreamValueContainer
java.lang.Object
org.openbandy.io.ValueContainer
org.openbandy.io.stream.StreamValueContainer
public class StreamValueContainer
- extends ValueContainer
This value container is a wrapper for WbxmlParser and WbmXmlWriter.
(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.
- Version:
- 1.0
- Author:
- Philipp Bolliger (philipp@bolliger.name)
Method Summary |
void |
addString(java.lang.String name,
java.lang.String value)
|
java.lang.String |
getString(java.lang.String name)
|
Methods inherited from class org.openbandy.io.ValueContainer |
addBoolean, addByte, addChar, addDouble, addFloat, addInt, addLong, addShort, addTimestamp, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getShort, getTimestamp |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamValueContainer
public StreamValueContainer(org.kxml.io.AbstractXmlWriter writer)
StreamValueContainer
public StreamValueContainer(org.kxml.parser.ParseEvent event)
addString
public void addString(java.lang.String name,
java.lang.String value)
- Specified by:
addString
in class ValueContainer
- Parameters:
name
- -
the name of the attributevalue
- -
the String value of the attribute
getString
public java.lang.String getString(java.lang.String name)
- Specified by:
getString
in class ValueContainer
- Parameters:
name
- -
the name of the attribute
- Returns:
- Returns the corresponding String value if available, null else