Package java.io

Examples of java.io.BufferedOutputStream


{
    private final BufferedOutputStream out;

    public BinaryOutputStream(OutputStream outputStream)
    {
        out = new BufferedOutputStream(outputStream);
    }
View Full Code Here


     * Initialize the transfer object. This method will try to open an input and
     * output stream.
     */
    public void init() throws IOException {
        in = new DataInputStream(new BufferedInputStream(socket.getInputStream(), Transfer.BUFFER_SIZE));
        out = new DataOutputStream(new BufferedOutputStream(socket.getOutputStream(), Transfer.BUFFER_SIZE));
    }
View Full Code Here

    }

    try {
      String out = args[0].substring(0, args[0].indexOf(".")) + ".raw";
      XPMFile file = XPMFile.load(args[0]);
      BufferedOutputStream bos = new BufferedOutputStream(
          new FileOutputStream(new File(out)));
      bos.write(file.getBytes());
      bos.close();

      // showResult(file.getBytes());
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

   * @param socket a socket in listening mode that handles client connections.
   */
  public ServerThread( final Socket socket ) throws IOException {
    this.socket = socket;
    inputStream = new DataInputStream( new BufferedInputStream( socket.getInputStream() ) );
    outputStream = new DataOutputStream( new BufferedOutputStream( socket.getOutputStream() ) );
  }
View Full Code Here

     * @param os output stream for writing modified class
     * @throws IOException if error writing to file
     */
    public void writeFile(OutputStream os) throws IOException {
        codeComplete();
        m_curClass.dump(new BufferedOutputStream(os));
        os.close();
    }
View Full Code Here

      throw new NullPointerException();
    }

    final BundleWriterState contentState = new BundleWriterState(state, state.getReport(), "dataschema.xml");

    final OutputStream outputStream = new BufferedOutputStream(bundle.createEntry(contentState.getFileName(),
        "text/xml"));
    final MasterReport report = state.getMasterReport();
    final DataSchemaDefinition definition = report.getDataSchemaDefinition();

    final StandaloneDataSchemaWriter dataSchemaWriter = new StandaloneDataSchemaWriter();
    dataSchemaWriter.write(definition, outputStream, "UTF-8");
    outputStream.close();
    return contentState.getFileName();
  }
View Full Code Here

      throw new NullPointerException();
    }

    final BundleWriterState contentState = new BundleWriterState(state, state.getReport(), "datadefinition.xml");// NON-NLS

    final OutputStream outputStream = new BufferedOutputStream(bundle.createEntry(contentState.getFileName(),
        "text/xml"));
    final DefaultTagDescription tagDescription =
        new DefaultTagDescription(ClassicEngineBoot.getInstance().getGlobalConfig(), BundleXmlModule.TAG_DEF_PREFIX);
    final XmlWriter writer = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ", "\n");
    writer.writeXmlDeclaration("UTF-8");
View Full Code Here

          {
            XSSFExcelExportTask.logger.warn("Can't create directories. Hoping and praying now.."); //$NON-NLS-1$
          }
        }
      }
      out = new BufferedOutputStream(new FileOutputStream(file));
      final FlowExcelOutputProcessor target =
          new FlowExcelOutputProcessor(report.getConfiguration(), out, report.getResourceManager());
      target.setUseXlsxFormat(true);
      final FlowReportProcessor reportProcessor = new FlowReportProcessor(report, target);
      if (progressDialog != null)
View Full Code Here

      throw new NullPointerException();
    }

    final BundleWriterState contentFileState = new BundleWriterState(state, "content.xml");

    final OutputStream outputStream = new BufferedOutputStream(bundle.createEntry(contentFileState.getFileName(),
        "text/xml"));
    final Configuration globalConfig = ClassicEngineBoot.getInstance().getGlobalConfig();
    final DefaultTagDescription tagDescription = new DefaultTagDescription(globalConfig,
        BundleXmlModule.TAG_DEF_PREFIX);
    final XmlWriter writer = new XmlWriter
View Full Code Here

    if (state == null)
    {
      throw new NullPointerException();
    }

    final OutputStream outputStream = new BufferedOutputStream(bundle.createEntry("settings.xml", "text/xml"));
    final DefaultTagDescription tagDescription = new DefaultTagDescription(
        ClassicEngineBoot.getInstance().getGlobalConfig(), BundleXmlModule.TAG_DEF_PREFIX);
    final XmlWriter writer = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ", "\n");
    writer.writeXmlDeclaration("UTF-8");
View Full Code Here

TOP

Related Classes of java.io.BufferedOutputStream

Copyright © 2018 www.massapicom. 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.