Examples of writeFile()


Examples of com.caucho.vfs.WriteStream.writeFile()

        }
        else {
          WriteStream deployStream = deployPath.openWrite();

          try {
            deployStream.writeFile(archivePath);
          }
          finally {
            deployStream.close();
          }
        }
View Full Code Here

Examples of com.caucho.vfs.WriteStream.writeFile()

  throws Throwable
  {
    WriteStream s = path.openWrite();

    try {
      s.writeFile(file);
    } finally {
      s.close();
    }
  }
View Full Code Here

Examples of com.caucho.vfs.WriteStream.writeFile()

  throws Throwable
  {
    WriteStream s = path.openAppend();

    try {
      s.writeFile(file);
    } finally {
      s.close();
    }
  }
View Full Code Here

Examples of com.google.enterprise.connector.util.diffing.testing.TestDirectoryManager.writeFile()

  @Override
  public void setUp() {
    try {
      TestDirectoryManager testDirectoryManager = new TestDirectoryManager(this);
      dir = testDirectoryManager.makeDirectory("root");
      file = testDirectoryManager.writeFile("root/file1", "file1_data");
    } catch (IOException e) {
      fail("failed to set up file system: " + e.getMessage());
    }
    fst = getFileSystemType();
  }
View Full Code Here

Examples of com.itextpdf.text.pdf.codec.TiffWriter.writeFile()

            byte[] buf = comp.toByteArray();
            wr.addField(new TiffWriter.FieldImage(buf));
            wr.addField(new TiffWriter.FieldLong(TIFFConstants.TIFFTAG_STRIPBYTECOUNTS, buf.length));
            if (icc != null)
                wr.addField(new TiffWriter.FieldUndefined(TIFFConstants.TIFFTAG_ICCPROFILE, icc));
            wr.writeFile(ms);
            streamContentType = ImageBytesType.CCITT;
            imageBytes = ms.toByteArray();
            return;
        } else {
            PngWriter png = new PngWriter(ms);
View Full Code Here

Examples of com.itextpdf.text.pdf.codec.TiffWriter.writeFile()

            byte[] buf = comp.toByteArray();
            wr.addField(new TiffWriter.FieldImage(buf));
            wr.addField(new TiffWriter.FieldLong(TIFFConstants.TIFFTAG_STRIPBYTECOUNTS, buf.length));
            if (icc != null)
                wr.addField(new TiffWriter.FieldUndefined(TIFFConstants.TIFFTAG_ICCPROFILE, icc));
            wr.writeFile(ms);
            fileType = TYPE_TIF;
            return ms.toByteArray();
        }
        PngWriter png = new PngWriter(ms);
        png.writeHeader(width, height, pngBitDepth, pngColorType);
View Full Code Here

Examples of com.itextpdf.text.pdf.codec.TiffWriter.writeFile()

            byte[] buf = comp.toByteArray();
            wr.addField(new TiffWriter.FieldImage(buf));
            wr.addField(new TiffWriter.FieldLong(TIFFConstants.TIFFTAG_STRIPBYTECOUNTS, buf.length));
            if (icc != null)
                wr.addField(new TiffWriter.FieldUndefined(TIFFConstants.TIFFTAG_ICCPROFILE, icc));
            wr.writeFile(ms);
            streamContentType = ImageBytesType.CCITT;
            imageBytes = ms.toByteArray();
            return;
        } else {
            PngWriter png = new PngWriter(ms);
View Full Code Here

Examples of com.iver.cit.gvsig.fmap.drivers.dbf.DBFDriver.writeFile()

            shxChannel.close();
           
            String dbf = shpPath.substring(0, shpPath.length() - 3) + "dbf";
            DBFDriver dbfDriver = new DBFDriver();
            dbfDriver.setDataSourceFactory(dsf);
            dbfDriver.writeFile(new File(dbf), new SpatialToAlphanumericalDataSourceAdapter(dataSource));
        } catch (IOException e) {
            throw new DriverException(e);
        } catch (ShapefileException e) {
            throw new DriverException(e);
        }
View Full Code Here

Examples of com.meapsoft.FeatFile.writeFile()

      currTime += timePerPixel;
    }

    try
    {
      fF.writeFile();
    }
    catch (IOException e1)
    {
      e1.printStackTrace();
    }
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
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.