Examples of writeFields()


Examples of org.ar.domainspecific.tools.csv.CSVFileWriter.writeFields()

    CSVFileWriter out = new CSVFileWriter("csv-pagerank/" + this.getOntologyName(tboxURI)+ ".csv" , ',');
    Vector<String> fields = new Vector<String>();
   
    fields.add("Concept name");
    fields.add("Score");
    out.writeFields(fields);
   
    for(ScoreMap entry: classesSorted)
    {
      fields.clear();
      fields.add(entry.concept.getURI().toString());
View Full Code Here

Examples of org.ar.domainspecific.tools.csv.CSVFileWriter.writeFields()

    for(ScoreMap entry: classesSorted)
    {
      fields.clear();
      fields.add(entry.concept.getURI().toString());
      fields.add(entry.score.toString());
      out.writeFields(fields);
    }
   
    out.close();
  }
View Full Code Here

Examples of org.ar.tools.CSVFileWriter.writeFields()

        sum += avg_time;
        bck += avg_bck;
      }
      //print the solution in the file
      printStream.println(solution);
      out.writeFields(fields);
    }
    in.close();
    out.close();
    fout.close()
  }
View Full Code Here

Examples of org.fudgemsg.wire.FudgeDataOutputStreamWriter.writeFields()

    if (dataMessage instanceof FudgeEncoded) {
      data = ((FudgeEncoded) dataMessage).getFudgeEncoded();
    } else {
      final ByteArrayOutputStream baos = new ByteArrayOutputStream();
      final FudgeDataOutputStreamWriter writer = new FudgeDataOutputStreamWriter(getFudgeContext(), baos);
      writer.writeFields(dataMessage);
      data = baos.toByteArray();
    }
    getBinaryData().put(identifier, data);
  }
View Full Code Here

Examples of org.fudgemsg.wire.FudgeDataOutputStreamWriter.writeFields()

          baos = new ByteArrayOutputStream();
          writer = new FudgeDataOutputStreamWriter(getFudgeContext(), baos);
        } else {
          baos.reset();
        }
        writer.writeFields(dataMessage.getValue());
        data = baos.toByteArray();
      }
      dataBytes.put(dataMessage.getKey(), data);
    }
    getBinaryData().put(dataBytes);
View Full Code Here

Examples of org.fudgemsg.wire.FudgeStreamWriter.writeFields()

  @Override
  public void addJSON(Appendable buffer) {
    StringWriter stringWriter = new StringWriter();
    FudgeStreamWriter fudgeWriter = new FudgeJSONStreamWriter(_fudgeContext, stringWriter);
    FudgeMsgEnvelope msg = _fudgeContext.toFudgeMsg(_value);
    fudgeWriter.writeFields(msg.getMessage());
    fudgeWriter.flush();
    fudgeWriter.close();
    try {
      buffer.append(stringWriter.toString());
    } catch (IOException ex) {
View Full Code Here

Examples of org.fudgemsg.wire.json.FudgeJSONStreamWriter.writeFields()

  @Override
  public void addJSON(Appendable buffer) {
    StringWriter stringWriter = new StringWriter();
    FudgeStreamWriter fudgeWriter = new FudgeJSONStreamWriter(_fudgeContext, stringWriter);
    FudgeMsgEnvelope msg = _fudgeContext.toFudgeMsg(_value);
    fudgeWriter.writeFields(msg.getMessage());
    fudgeWriter.flush();
    fudgeWriter.close();
    try {
      buffer.append(stringWriter.toString());
    } catch (IOException ex) {
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.