Examples of DataWriter


Examples of org.apache.catalina.nonblocking.TestNonBlockingAPI.DataWriter

    @Test
    public void doTestAJPNonBlockingRead() throws Exception {

        Map<String, List<String>> resHeaders = new HashMap<>();
        ByteChunk out = new ByteChunk();
        int rc = postUrl(true, new DataWriter(2000), "http://localhost" +
                "/examples/servlets/nonblocking/bytecounter",
                out, resHeaders, null);

        System.out.println(out.toString());
View Full Code Here

Examples of org.apache.cxf.databinding.DataWriter

        assertTrue(cls.contains(XMLEventReader.class));
        assertTrue(cls.contains(Node.class));
    }

    public void testCreateWriter() {
        DataWriter writer = jaxbDataBinding.createWriter(XMLStreamWriter.class);
        assertTrue(writer instanceof XMLStreamDataWriter);
       
        writer = jaxbDataBinding.createWriter(XMLEventWriter.class);
        assertTrue(writer instanceof EventDataWriter);
       
View Full Code Here

Examples of org.apache.cxf.databinding.DataWriter

        assertTrue(cls.contains(Node.class));
    }

    @Test
    public void testCreateWriter() {
        DataWriter writer = jaxbDataBinding.createWriter(XMLStreamWriter.class);
        assertTrue(writer instanceof DataWriterImpl);
       
        writer = jaxbDataBinding.createWriter(XMLEventWriter.class);
        assertTrue(writer instanceof DataWriterImpl);
       
View Full Code Here

Examples of org.apache.cxf.databinding.DataWriter

        assertTrue(cls.contains(Node.class));
    }

    @Test
    public void testCreateWriter() {
        DataWriter writer = jaxbDataBinding.createWriter(XMLStreamWriter.class);
        assertTrue(writer instanceof DataWriterImpl);
       
        writer = jaxbDataBinding.createWriter(XMLEventWriter.class);
        assertTrue(writer instanceof DataWriterImpl);
       
View Full Code Here

Examples of org.apache.drill.exec.ref.rops.DataWriter

    if(stream instanceof FSDataOutputStream) posStream = (FSDataOutputStream) stream;
  }

  @Override
  public void setup() throws IOException {
    DataWriter w = null;
    switch(type){
    case JSON:
      w = new JSONDataWriter(stream);
      break;
    default:
View Full Code Here

Examples of org.boris.pecoff4j.io.DataWriter

                }
            }

            File outFile = new File(outputDir, pecoff.getName() + "-icon" + i +
                    ".ico");
            DataWriter dw = new DataWriter(new FileOutputStream(outFile));
            icf.write(dw);
            dw.close();
        }
    }
View Full Code Here

Examples of org.cleartk.classifier.DataWriter


        // now write in the libsvm format
//        LIBLINEARStringOutcomeDataWriter dataWriter = new LIBLINEARStringOutcomeDataWriter(directory);
      Constructor c = this.dataWriterClass.getConstructor(File.class);
        DataWriter dataWriter = (DataWriter) c.newInstance(directory);
       
        // try filtering
        for (Instance<String> instance : instances) {
          dataWriter.write(featureSelection.transform(instance));
        }
        dataWriter.finish();
    }

    // train models based on instances
    JarClassifierBuilder.trainAndPackage(directory, arguments);
  }
View Full Code Here

Examples of org.dcm4che3.net.DataWriter

                    break;
                }
                if (pendingRSP)
                    writePendingRSP();
                String tsuid;
                DataWriter dataWriter;
                try {
                    tsuid = selectTransferSyntaxFor(storeas, inst);
                    dataWriter = createDataWriter(inst, tsuid);
                } catch (Exception e) {
                    status = Status.OneOrMoreFailures;
View Full Code Here

Examples of org.kohsuke.stapler.export.DataWriter

     * </pre>
     *
     * See http://developer.mozilla.org/en/docs/Supporting_search_suggestions_in_search_plugins
     */
    public void doSuggestOpenSearch(StaplerRequest req, StaplerResponse rsp, @QueryParameter String q) throws IOException, ServletException {
        DataWriter w = Flavor.JSON.createDataWriter(null, rsp);
        w.startArray();
        w.value(q);

        w.startArray();
        for (SuggestedItem item : getSuggestions(req, q))
            w.value(item.getPath());
        w.endArray();
        w.endArray();
    }
View Full Code Here

Examples of org.omg.dds.DataWriter

   * @return
   */
  public DataWriter create_datawriter(Topic a_topic, DataWriterQos qos,
      DataWriterListener a_listener) {
   
    DataWriter DW = null ;
    Servant impl;
    
    try{
      Class type = Class.forName(a_topic.get_type_name()+"DataWriterImpl") ;
      Class typehelper = Class.forName(a_topic.get_type_name()+"DataWriterHelper") ;
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.