Examples of writeTag()


Examples of com.google.protobuf.CodedOutputStream.writeTag()

         out.writeFloat(wrappedFloat, (Float) t);
      } else if (t instanceof Boolean) {
         out.writeBool(wrappedBool, (Boolean) t);
      } else if (t instanceof byte[]) {
         byte[] bytes = (byte[]) t;
         out.writeTag(wrappedBytes, WireFormat.WIRETYPE_LENGTH_DELIMITED);
         out.writeRawVarint32(bytes.length);
         out.writeRawBytes(bytes);
      } else if (t instanceof Enum) {
         // use an enum encoder
         EnumEncoder enumEncoder = ctx.getEnumEncoder((Class<Enum>) t.getClass());
View Full Code Here

Examples of com.iCo6.util.nbt.NBTOutputStream.writeTag()

            HashMap<String, Tag> tagCompound = new HashMap<String, Tag>(tag.getValue());
            tagCompound.put("Inventory", inventory);
            tag = new CompoundTag("Player", tagCompound);

            NBTOutputStream out = new NBTOutputStream(new FileOutputStream(new File(dataDir, name + ".dat")));
            out.writeTag(tag);
            out.close();
        } catch (IOException ex) {
            iConomy.Server.getLogger().log(Level.WARNING, "[iCo/InvDB] error writing inventory {0}: {1}", new Object[]{name, ex.getMessage()});
        }
    }
View Full Code Here

Examples of com.psddev.dari.util.HtmlWriter.writeTag()

            } finally {
                @SuppressWarnings("resource")
                HtmlWriter writer = new HtmlWriter(response.getWriter());

                writer.writeTag("!doctype html");
                writer.writeStart("html");
                    writer.writeStart("body");
                        writer.writeStart("textarea", "id", "frameBody");
                            writer.writeHtml(capturing.getOutput());
                        writer.writeEnd();
View Full Code Here

Examples of net.glowstone.util.nbt.NBTOutputStream.writeTag()

            return;
        }

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        try (NBTOutputStream str = new NBTOutputStream(out, false)) {
            str.writeTag(data);
        } catch (IOException e) {
            GlowServer.logger.log(Level.WARNING, "Error serializing NBT: " + data, e);
            return;
        }
View Full Code Here

Examples of net.lightstone.util.nbt.NBTOutputStream.writeTag()

      Map<String, Tag> tagMap = new HashMap<String, Tag>(1);
      tagMap.put("Level", levelTag);

      CompoundTag tag = new CompoundTag("", tagMap);
      nbtOut.writeTag(tag);
    } finally {
      out.close();
    }

    // TODO: Close the regionfile
View Full Code Here

Examples of org.apache.qpid.info.util.XMLWriter.writeTag()

        String key;
        for (Iterator<String> it = _info.keySet().iterator(); it.hasNext();)
        {
            attr.clear();
            key = it.next();
            xw.writeTag(key, attr, _info.get(key).toString());
        }
        xw.writeCloseTag("qpidinfo");
        return xw.getXML();
    }
View Full Code Here

Examples of org.jfree.xmlns.writer.XmlWriter.writeTag()

        final int span = getColumnSpanForCell(tableCounter, columnCounter, 1);
        // use the calculated span for the column in the uniform table to create any additional covered-table-cell
        // elements
        for (int i = 0; i < span; i++)
        {
          xmlWriter.writeTag(namespace, "covered-table-cell", null, XmlWriter.CLOSE);
        }
      }
      return;
    }
View Full Code Here

Examples of org.jnbt.NBTOutputStream.writeTag()

      final Map<String, Tag> newTopLevelMap = new HashMap<String, Tag>(1);
      newTopLevelMap.put("Data", newDataTag);
      final CompoundTag newTopLevelTag = new CompoundTag("", newTopLevelMap);

      final NBTOutputStream output = new NBTOutputStream(new FileOutputStream(level));
      output.writeTag(newTopLevelTag);
      output.close();
    } catch (final ClassCastException ex) {
      throw new IOException("Invalid level format.");
    } catch (final NullPointerException ex) {
      throw new IOException("Invalid level format.");
View Full Code Here

Examples of org.jrobin.core.XmlWriter.writeTag()

    }
    ByteArrayOutputStream stream = new ByteArrayOutputStream();
    XmlWriter w = new XmlWriter(stream);
    w.startTag("xport");
    w.startTag("meta");
    w.writeTag("start", timestamps[0]);
    w.writeTag("step", timestamps[1] - timestamps[0]);
    w.writeTag("end", timestamps[timestamps.length - 1]);
    w.writeTag("rows", timestamps.length);
    w.writeTag("columns", xports.size());
    w.startTag("legend");
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

      final String name = (String) it.next();
      if (shouldWriteParameter(name))
      {
        if (tagWritten == false)
        {
          writer.writeTag(ExtParserModule.NAMESPACE, AbstractXMLDefinitionWriter.TEMPLATE_TAG, attList,
              XmlWriterSupport.OPEN);
          tagWritten = true;
        }
        writeParameter(name);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.