Examples of writeId()


Examples of com.sun.messaging.jmq.io.SysMessageID.writeID()

                dos.writeInt(cLogRecordCount); // Number of acks (4 bytes)
                for (int i = 0; i < cLogRecordCount; i++) {
                    String dst = (String)cLogDstList.get(i);
                    dos.writeUTF(dst); // Destination
                    SysMessageID sysid = (SysMessageID)cLogMsgList.get(i);
                    sysid.writeID(dos); // SysMessageID
                    ConsumerUID intid = (ConsumerUID)cLogIntList.get(i);
                    dos.writeLong(intid.longValue()); // ConsumerUID
                }

                dos.close();
View Full Code Here

Examples of com.sun.messaging.jmq.io.SysMessageID.writeID()

                dos.writeInt(cLogRecordCount); // Number of acks (4 bytes)
                for (int i = 0; i < cLogRecordCount; i++) {
                    String dst = (String)cLogDstList.get(i);
                    dos.writeUTF(dst); // Destination
                    SysMessageID sysid = (SysMessageID)cLogMsgList.get(i);
                    sysid.writeID(dos); // SysMessageID
                    ConsumerUID intid = (ConsumerUID)cLogIntList.get(i);
                    dos.writeLong(intid.longValue()); // ConsumerUID
                }
                dos.close();
                bos.close();
View Full Code Here

Examples of com.sun.messaging.jmq.io.SysMessageID.writeID()

                    dos.writeInt(cLogRecordCount); // Number of acks (4 bytes)
                    for (int i = 0; i < cLogRecordCount; i++) {
                        String dst = (String)cLogDstList.get(i);
                        dos.writeUTF(dst); // Destination
                        SysMessageID sysid = (SysMessageID)cLogMsgList.get(i);
                        sysid.writeID(dos); // SysMessageID
                        long intid =
                            ((com.sun.messaging.jmq.jmsserver.core.ConsumerUID)
                            cLogIntList.get(i)).longValue();
                        dos.writeLong(intid); // ConsumerUID
                    }
View Full Code Here

Examples of gnu.classpath.jdwp.VMMethod.writeId()

    VMMethod[] methods = VMVirtualMachine.getAllClassMethods(clazz);
    os.writeInt (methods.length);
    for (int i = 0; i < methods.length; i++)
      {
        VMMethod method = methods[i];
        method.writeId(os);
        JdwpString.writeString(os, method.getName());
        JdwpString.writeString(os, method.getSignature());
        os.writeInt(method.getModifiers());
      }
  }
View Full Code Here

Examples of org.apache.abdera.writer.StreamWriter.writeId()

                    StringWriter stringWriter = new StringWriter();
                    StreamWriter writer = Abdera.getInstance()
                            .getWriterFactory().newStreamWriter();
                    writer.setWriter(stringWriter);
                    writer.startEntry();
                    writer.writeId(entry.getId());
                    writer.writeUpdated(entry.getUpdated());
                    writer.writePublished(entry.getPublished());
                    if (predecessor != null) {
                        writer.startElement(Common.PREDECESSOR, Common.NS_URI);
                        writer.writeElementText(predecessor);
View Full Code Here

Examples of org.geomajas.rendering.GraphicsDocument.writeId()

  @Test
  public void testSimple() throws Exception {
    StringWriter writer = new StringWriter();
    GraphicsDocument document = new DefaultSvgDocument(writer, false);
    document.writeElement("g", true);
    document.writeId("featureId");
    document.writeElement("g", true);
    document.writeAttribute("style", "my-super-style:true;");
    document.writeId("styleId");
    document.closeElement();
    document.closeElement();
View Full Code Here

Examples of org.geomajas.rendering.GraphicsDocument.writeId()

    GraphicsDocument document = new DefaultSvgDocument(writer, false);
    document.writeElement("g", true);
    document.writeId("featureId");
    document.writeElement("g", true);
    document.writeAttribute("style", "my-super-style:true;");
    document.writeId("styleId");
    document.closeElement();
    document.closeElement();
    Assert.assertEquals("<g id=\"featureId\"><g style=\"my-super-style:true;\" id=\"featureId.styleId\"/></g>", writer.getBuffer().toString());
  }
View Full Code Here

Examples of org.geomajas.rendering.GraphicsDocument.writeId()

  @Test
  public void testSimpleSvg() throws Exception {
    StringWriter writer = new StringWriter();
    GraphicsDocument document = new DefaultSvgDocument(writer);
    document.writeElement("g", true);
    document.writeId("featureId");
    document.writeElement("g", true);
    document.writeAttribute("style", "my-super-style:true;");
    document.writeId("styleId");
    document.closeElement();
    document.closeElement();
View Full Code Here

Examples of org.geomajas.rendering.GraphicsDocument.writeId()

    GraphicsDocument document = new DefaultSvgDocument(writer);
    document.writeElement("g", true);
    document.writeId("featureId");
    document.writeElement("g", true);
    document.writeAttribute("style", "my-super-style:true;");
    document.writeId("styleId");
    document.closeElement();
    document.closeElement();
    Assert.assertEquals("<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:hlink=\"http://www.w3.org/1999/xlink\">" +
        "<g id=\"featureId\"><g style=\"my-super-style:true;\" id=\"featureId.styleId\"/></g>", writer.getBuffer().toString());
  }
View Full Code Here

Examples of org.geomajas.rendering.GraphicsDocument.writeId()

  @Test
  public void testSimpleFlush() throws Exception {
    StringWriter writer = new StringWriter();
    GraphicsDocument document = new DefaultSvgDocument(writer, false);
    document.writeElement("g", true);
    document.writeId("featureId");
    document.writeElement("g", true);
    document.writeAttribute("style", "my-super-style:true;");
    document.writeId("styleId");
    Assert.assertEquals("featureId.styleId", document.getCurrentId());
    document.flush();
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.