Examples of writeFile()


Examples of com.sun.star.ucb.XSimpleFileAccess2.writeFile()

                bos = new ByteArrayOutputStream( 1024 );
                m_descriptor.write( bos );
                bis = new ByteArrayInputStream( bos.toByteArray() );

                xis = new XInputStreamImpl( bis );
                xSFA2.writeFile( pathToDescriptor, xis );
            }
            finally
            {
                if (bos != null) bos.close();
                if (bis != null) bis.close();
View Full Code Here

Examples of com.sun.star.ucb.XSimpleFileAccess2.writeFile()

                    parent.m_xSFA );
            if ( xSFA2 != null )
            {
                ByteArrayInputStream bis = new ByteArrayInputStream( getSourceBytes() );
                XInputStreamImpl xis = new XInputStreamImpl( bis );
                xSFA2.writeFile( sourceFilePath, xis );
                xis.closeInput();
                result = true;
            }
        }
        // TODO re-examine exception processing should probably throw
View Full Code Here

Examples of com.sun.star.ucb.XSimpleFileAccess2.writeFile()

                bos = new ByteArrayOutputStream( 1024 );
                m_descriptor.write( bos );
                bis = new ByteArrayInputStream( bos.toByteArray() );

                xis = new XInputStreamImpl( bis );
                xSFA2.writeFile( pathToDescriptor, xis );
            }
            finally
            {
                if (bos != null) bos.close();
                if (bis != null) bis.close();
View Full Code Here

Examples of com.sun.star.ucb.XSimpleFileAccess2.writeFile()

                    parent.m_xSFA );
            if ( xSFA2 != null )
            {
                ByteArrayInputStream bis = new ByteArrayInputStream( getSourceBytes() );
                XInputStreamImpl xis = new XInputStreamImpl( bis );
                xSFA2.writeFile( sourceFilePath, xis );
                xis.closeInput();
                result = true;
            }
        }
        // TODO re-examine exception processing should probably throw
View Full Code Here

Examples of com.sun.star.ucb.XSimpleFileAccess2.writeFile()

                ByteArrayOutputStream bos = new ByteArrayOutputStream( 1024 );
                pd.write( bos );
                bos.close();
                ByteArrayInputStream bis = new ByteArrayInputStream( bos.toByteArray() );                
                XInputStreamImpl xis = new XInputStreamImpl( bis );
                xSFA2.writeFile( parcelDesc, xis );
                xis.closeInput();
                p = loadParcel( pathToParcel );
            }
        }
        catch ( Exception e )
View Full Code Here

Examples of edu.purdue.wind.Wave.writeFile()

  generator.generate(samples);

  wave.setSampleData(samples);

  FileOutputStream fos = new FileOutputStream(file);
  wave.writeFile(fos);
  fos.close();
    }
}
View Full Code Here

Examples of fr.lip6.jkernelmachines.io.FvecImporter.writeFile()

      double[] d = new double[10];
      for(int i = 0 ; i < 10 ; i++)
        d[i] = i;
      l.add(d);
     
      fvecimp.writeFile("resources/testwrite.fvec", l);
     
      File f = new File("resources/testwrite.fvec");
     
      assertEquals(4+4*10, f.length());
     
View Full Code Here

Examples of fr.ybonnel.csvengine.CsvEngine.writeFile()

        CsvEngine engine = new CsvEngine(ProposalCsv.class);

        StringWriter writer = new StringWriter();

        engine.writeFile(writer, proposals, ProposalCsv.class);

        response().setContentType("application/octet-stream");
        response().setHeader("Content-Description", "File Transfer");
        response().setHeader("Content-Disposition", "attachment;filename=proposals.csv");
        response().setHeader("Content-Transfer-Encoding", "binary");
View Full Code Here

Examples of fr.ybonnel.csvengine.CsvEngine.writeFile()

        CsvEngine engine = new CsvEngine(AdressMacForSpeakers.class);

        StringWriter writer = new StringWriter();

        engine.writeFile(writer, macAddressOfSpeakers, AdressMacForSpeakers.class);

        response().setContentType("application/octet-stream");
        response().setHeader("Content-Description", "File Transfer");
        response().setHeader("Content-Disposition", "attachment;filename=macaddress.csv");
        response().setHeader("Content-Transfer-Encoding", "binary");
View Full Code Here

Examples of javassist.ClassPool.writeFile()

                }
            }

            final File directory = getClassOutputDirectory(existingClass);

            pool.writeFile(className,
                directory != null ? directory.getAbsolutePath() : "");
        }
        catch (final Throwable throwable)
        {
            throwable.printStackTrace();
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.