private static void add(char c, String s, boolean attOnly) { byte[] image = UTF8XmlOutput.toBytes(s); attributeEntities[c] = image; if (!attOnly) entities[c] = image; }
/** Writes the encoded bytes to the given output stream. */ public final void write(UTF8XmlOutput out) throws IOException { out.write(buf, 0, len); }