Examples of NullWriter


Examples of com.agilejava.docbkx.maven.NullWriter

        if (!isShowXslMessages()) {
          Controller controller = (Controller) transformer;
          try {
            controller.makeMessageEmitter();
            controller.getMessageEmitter().setWriter(new NullWriter());
          } catch (TransformerException te) {
            getLog().error("Failed to redirect xsl:message output.", te);
          }
        }
View Full Code Here

Examples of com.github.mustachejavabenchmarks.NullWriter

    int ITERATIONS = 1000;

    for (int j = 0; j < 10; j++) {
      long start = System.currentTimeMillis();
      for (int i = 0; i < ITERATIONS; i++) {
        Writer hawriter = new StateAwareWriter<HtmlState>(new NullWriter(), new HtmlState());
        hawriter.write(value);
        hawriter.close();
      }
      long end = System.currentTimeMillis();
      System.out.println(end - start);
View Full Code Here

Examples of de.micromata.hibernate.spring.NullWriter

        if (classMetadata == null) {
          log.fatal("Can't init " + obj + " of type " + targetClass);
          continue;
        }
        // initalisierung des Objekts...
        defaultXStream.marshal(obj, new CompactWriter(new NullWriter()));

        if (preserveIds == false) {
          // Nun kann die ID gelöscht werden
          classMetadata.setIdentifier(obj, null, EntityMode.POJO);
        }
View Full Code Here

Examples of freenet.support.io.NullWriter

    if(logMINOR) Logger.minor(this, "getCharset(): default="+parseCharset);
    if(length > getCharsetBufferSize() && Logger.shouldLog(LogLevel.MINOR, this)) {
      Logger.minor(this, "More data than was strictly needed was passed to the charset extractor for extraction");
    }
    ByteArrayInputStream strm = new ByteArrayInputStream(input, 0, length);
    Writer w = new NullWriter();
    Reader r;
    try {
      r = new BufferedReader(new InputStreamReader(strm, parseCharset), 4096);
    } catch (UnsupportedEncodingException e) {
      strm.close();
View Full Code Here

Examples of freenet.support.io.NullWriter

      Logger.debug(this, "Fetching charset for CSS with initial charset "+charset);
    if(input.length > getCharsetBufferSize() && logMINOR) {
      Logger.minor(this, "More data than was strictly needed was passed to the charset extractor for extraction");
    }
    InputStream strm = new ByteArrayInputStream(input, 0, length);
    NullWriter w = new NullWriter();
    InputStreamReader isr;
    BufferedReader r = null;
    try {
      try {
        isr = new InputStreamReader(strm, charset);
View Full Code Here

Examples of net.matuschek.util.NullWriter

    // okay, parse the HTML code
    ByteArrayInputStream bis = new ByteArrayInputStream(input.getContent());
    Tidy tidy = new Tidy();
    tidy.setUpperCaseTags(false);
    tidy.setUpperCaseAttrs(false);
    tidy.setErrout(new PrintWriter(new NullWriter()));

    Document doc = tidy.parseDOM(bis,null);

    rewriteDOM(doc,input.getURL());
View Full Code Here

Examples of net.sourceforge.segment.util.NullWriter

 
  private Writer createTextWriter(CommandLine commandLine) {
    Writer writer;
   
    if (commandLine.hasOption('p')) {
      writer = new NullWriter();
    } else if (commandLine.hasOption('o')) {
      writer = createFileWriter(commandLine.getOptionValue('o'));
    } else {
      writer = createStandardOutputWriter();
    }
View Full Code Here

Examples of org.apache.commons.io.output.NullWriter

        return ret;
    }

    public static void main(String[] args) throws Exception {
        PrintStream hier_out = null;       
        PrintWriter assign_out = new PrintWriter(new NullWriter());
        PrintStream bootstrap_out = null;
        File hier_out_filename = null;
        String propFile = null;
        File biomFile = null;
        File metadataFile = null;
View Full Code Here

Examples of org.apache.commons.io.output.NullWriter

     * @param args
     * @throws Exception
     */
    public static void main(String [] args) throws Exception {
       
        PrintWriter assign_out = new PrintWriter(new NullWriter());
        float conf = 0.8f;
        PrintStream heir_out = null;
        String hier_out_filename = null;
        ClassificationResultFormatter.FORMAT format = ClassificationResultFormatter.FORMAT.allRank;
        String rank = null;
View Full Code Here

Examples of org.apache.commons.io.output.NullWriter

     * Test Copying file > 2GB  - see issue# IO-84
     */
    public void testCopy_readerToWriter_IO84() throws Exception {
        long size = (long)Integer.MAX_VALUE + (long)1;
        Reader reader = new NullReader(size);
        Writer writer = new NullWriter();

        // Test copy() method
        assertEquals(-1, IOUtils.copy(reader, writer));

        // reset the input
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.