public void writeString(String s) throws XMLStreamException { if (s == null) { return; } writeCharacters(s); }
public void writeAsXmlList(Collection<Object> values) throws XMLStreamException { for (Object value : values) { writeCharacters(value.toString()); writeCharacters(" "); } }
public void writeAsXmlList(Object[] values) throws XMLStreamException { for (Object value : values) { writeCharacters(value.toString()); writeCharacters(" "); } }
public void writeBoolean(boolean b) throws XMLStreamException { writeCharacters(Boolean.toString(b)); }
public void writeLong(long b) throws XMLStreamException { writeCharacters(Long.toString(b)); }
public void writeShort(short b) throws XMLStreamException { writeCharacters(Short.toString(b)); } public void writeByte(byte b) throws XMLStreamException {
public void writeFloat(float b) throws XMLStreamException { writeCharacters(Float.toString(b)); }
public void writeInt(int i) throws XMLStreamException { writeCharacters(Integer.toString(i)); }
public void writeDouble(double b) throws XMLStreamException { writeCharacters(Double.toString(b)); }
public void writeByte(byte b) throws XMLStreamException { writeCharacters(Byte.toString(b)); }
public void writeAsXmlList(double[] values) throws XMLStreamException { for (double value : values) { writeDouble(value); writeCharacters(" "); } }
public void writeAsXmlList(boolean[] values) throws XMLStreamException { for (boolean value : values) { writeBoolean(value); writeCharacters(" "); } }
public void writeAsXmlList(int[] values) throws XMLStreamException { for (int value : values) { writeInt(value); writeCharacters(" "); } }
public void writeAsXmlList(long[] values) throws XMLStreamException { for (long value : values) { writeLong(value); writeCharacters(" "); } }
public void writeAsXmlList(short[] values) throws XMLStreamException { for (short value : values) { writeShort(value); writeCharacters(" "); } }
public void writeAsXmlList(float[] values) throws XMLStreamException { for (float value : values) { writeFloat(value); writeCharacters(" "); } }
public void writeQName(QName q) throws XMLStreamException { String prefix = q.getPrefix(); if (prefix.length() > 0) { writeAndDeclareIfUndeclared(prefix, q.getNamespaceURI(), true); } else { if (!q.getNamespaceURI().equals(defaultNamespace.getNamespaceURI())) { prefix = getUniquePrefix(q.getNamespaceURI(), true); } } if (prefix.length() > 0) { writeCharacters(prefix); writeCharacters(":"); } writeCharacters(q.getLocalPart()); }