Examples of writeTo()


Examples of org.apache.flex.compiler.as.codegen.IASWriter.writeTo()

                            // XXX hack what is CountingOutputStream?
                            BufferedOutputStream out =
                                new BufferedOutputStream(
                                    new FileOutputStream(outputClassFile));
                            jswriter.writeTo(out);
                            out.flush();
                            out.close();
                            jswriter.close();
                        //}
                    }
View Full Code Here

Examples of org.apache.flex.compiler.codegen.as.IASWriter.writeTo()

                                    unit, false);
                        }

                        BufferedOutputStream out = new BufferedOutputStream(
                                new FileOutputStream(outputClassFile));
                        writer.writeTo(out);
                        out.flush();
                        out.close();
                        writer.close();
                    }
                }
View Full Code Here

Examples of org.apache.flex.swf.io.ISWFWriter.writeTo()

                            Header.Compression compression = Header.decideCompression(true, swf.getVersion(), false);
   
                            final ISWFWriterFactory writerFactory = SWFWriterAndSizeReporter.getSWFWriterFactory(
                                    targetSettings.getSizeReport());
                            final ISWFWriter writer = writerFactory.createSWFWriter(optimizedSWF, compression, targetSettings.isDebugEnabled());
                            int swfSize = writer.writeTo(outputFile);
           
                            long endTime = System.nanoTime();
                            String seconds = String.format("%5.3f", (endTime - startTime) / 1e9);
                            Map<String, Object> params = new HashMap<String, Object>();
                            params.put("byteCount", swfSize);
View Full Code Here

Examples of org.apache.flex.swf.io.SWFWriter.writeTo()

            try
            {
                CountingOutputStream output = new CountingOutputStream(
                        new BufferedOutputStream(new FileOutputStream(outputFile)));

                writer.writeTo(output);
                output.flush();
                output.close();
                writer.close();

                out.format("%s, %d bytes written in %5.3f seconds\n",
View Full Code Here

Examples of org.apache.fop.afp.parser.UnparsedStructuredField.writeTo()

            UnparsedStructuredField field = parser.readNextStructuredField();
            if (field == null) {
                break;
            }
            out.write(MODCAParser.CARRIAGE_CONTROL_CHAR);
            field.writeTo(out);
        }
    }

    /**
     * Copy a named resource to a given {@link OutputStream}. The MO:DCA fields read from the
View Full Code Here

Examples of org.apache.geronimo.corba.io.EncapsulationOutputStream.writeTo()

       
        EncapsulationOutputStream eo = new EncapsulationOutputStream(out.__orb());
        write_content(eo);
        try {
             out.write_long(eo.__stream_position());
            eo.writeTo(out);
        }
        catch (IOException ex) {
            MARSHAL m = new MARSHAL();
            m.initCause(ex);
            throw m;
View Full Code Here

Examples of org.apache.giraph.conf.GiraphTypes.writeTo()

            new JythonIncomingMessageValueFactory(), interpreter));
    types.setOutgoingMessageValueClass(
        initValueType(conf, GraphType.OUTGOING_MESSAGE_VALUE,
            jythonJob.getOutgoing_message_value().getType(),
            new JythonOutgoingMessageValueFactory(), interpreter));
    types.writeTo(conf);
  }

  /**
   * Initialize a graph type (IVEMM)
   *
 
View Full Code Here

Examples of org.apache.hadoop.hbase.protobuf.generated.MapReduceProtos.TableSnapshotRegionSplit.writeTo()

      }

      TableSnapshotRegionSplit split = builder.build();

      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      split.writeTo(baos);
      baos.close();
      byte[] buf = baos.toByteArray();
      out.writeInt(buf.length);
      out.write(buf);
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.writeTo()

    public void regionClose(final SnapshotRegionManifest.Builder region) throws IOException {
      SnapshotRegionManifest manifest = region.build();
      FSDataOutputStream stream = fs.create(getRegionManifestPath(snapshotDir, manifest));
      try {
        manifest.writeTo(stream);
      } finally {
        stream.close();
      }
    }
View Full Code Here

Examples of org.apache.hadoop.io.DataOutputBuffer.writeTo()

  static void createEditsFile(String editDir) throws IOException {
    File editfile = new File(editDir + EDITSFILE);
    FileOutputStream fp = new FileOutputStream(editfile);
    DataOutputBuffer buf = new DataOutputBuffer(1024);
    buf.writeInt(FSConstants.LAYOUT_VERSION);
    buf.writeTo(fp);
    buf.close();
    fp.close();
  }

  /**
 
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.