Examples of writeTo()


Examples of org.modeshape.common.collection.SimpleProblems.writeTo()

        Problems problemsDuringImport = new SimpleProblems();

        CndImporter cndImporter = new CndImporter(new ExecutionContext());
        cndImporter.importFrom(cndInputStream, problemsDuringImport, null);
        if (problemsDuringImport.hasErrors()) {
            problemsDuringImport.writeTo(LOGGER);
            return null;
        }

        return cndImporter;
    }
View Full Code Here

Examples of org.mortbay.resource.Resource.writeTo()

        }
        else
        {
            // Write content normally
            response.setDateHeader(HttpHeaders.LAST_MODIFIED,last_modified);
            resource.writeTo(out,0,resource.length());
        }
    }

    /* ------------------------------------------------------------ */
    /** Set the response headers.
View Full Code Here

Examples of org.mortbay.util.ByteArrayISO8859Writer.writeTo()

                    writer.write("\n                                                ");
                writer.write("\n</body>\n</html>\n");
               
                writer.flush();
                setContentLength(writer.size());
                writer.writeTo(getOutputStream());
                writer.destroy();
            }
        }
        else if (code!=SC_PARTIAL_CONTENT)
        {
View Full Code Here

Examples of org.onebusaway.transit_data_federation.services.service_alerts.ServiceAlerts.ServiceAlertsCollection.writeTo()

    ServiceAlertsCollection collection = builder.build();

    OutputStream out = null;
    try {
      out = new BufferedOutputStream(new FileOutputStream(path));
      collection.writeTo(out);
      out.close();
    } catch (Exception ex) {
      _log.error("error saving service alerts to path " + path, ex);
    } finally {
      if (out != null) {
View Full Code Here

Examples of org.ontoware.rdf2go.model.Model.writeTo()

    @SuppressWarnings("unused")
    Point A = new Point("0","0","0");
    @SuppressWarnings("unused")
    Point B = new Point("1,4","10,1","0");
   
    model.writeTo(System.out, Syntax.Turtle);
  }

}
View Full Code Here

Examples of org.openflow.protocol.OFFlowMod.writeTo()

                OFFlowMod offlowMod = (OFFlowMod)msg;
                packet.setSwPortTuple(new SwitchPortTuple(sw.getId(),
                                                          offlowMod.
                                                          getOutPort()));
                bb = ChannelBuffers.buffer(offlowMod.getLength());
                offlowMod.writeTo(bb);
                packet.setData(OFMessage.getData(sw, msg, cntx));
                break;
            default:
                packet.setSwPortTuple(new SwitchPortTuple(sw.getId(),
                                                          (short)0));
View Full Code Here

Examples of org.openflow.protocol.OFPacketIn.writeTo()

            case PACKET_IN:
                OFPacketIn pktIn = (OFPacketIn)msg;
                packet.setSwPortTuple(new SwitchPortTuple(sw.getId(),
                                                          pktIn.getInPort()));
                bb = ChannelBuffers.buffer(pktIn.getLength());
                pktIn.writeTo(bb);
                packet.setData(OFMessage.getData(sw, msg, cntx));
                break;
            case PACKET_OUT:
                OFPacketOut pktOut = (OFPacketOut)msg;
                packet.setSwPortTuple(new SwitchPortTuple(sw.getId(),
View Full Code Here

Examples of org.openflow.protocol.OFPacketOut.writeTo()

            case PACKET_OUT:
                OFPacketOut pktOut = (OFPacketOut)msg;
                packet.setSwPortTuple(new SwitchPortTuple(sw.getId(),
                                                          pktOut.getInPort()));
                bb = ChannelBuffers.buffer(pktOut.getLength());
                pktOut.writeTo(bb);
                packet.setData(OFMessage.getData(sw, msg, cntx));
                break;
            case FLOW_MOD:
                OFFlowMod offlowMod = (OFFlowMod)msg;
                packet.setSwPortTuple(new SwitchPortTuple(sw.getId(),
View Full Code Here

Examples of org.openqa.jetty.util.ByteArrayISO8859Writer.writeTo()

 
        writer.write("\n</BODY>\n</HTML>\n");
        writer.flush();
        response.setContentLength(writer.size());
        OutputStream out=response.getOutputStream();
        writer.writeTo(out);
        out.close();
    }
}
View Full Code Here

Examples of org.openqa.selenium.firefox.PreferencesWrapper.writeTo()

        PreferencesWrapper prefs = loadFirefoxPreferences();

        prefs.addTo(profile);
        try {
          StringWriter writer = new StringWriter(512);
          prefs.writeTo(writer);
          LOG.info("Added properties to firefox profile: " + writer.toString());
        } catch (IOException e) {
          LOG.error("Unable to log firefox profile settings", e);
        }
      }
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.