Package org.hsqldb.lib

Examples of org.hsqldb.lib.FileAccess


    public void sync() {}

    protected void openFile() throws HsqlException {

        try {
            FileAccess           fa  = database.getFileAccess();
            java.io.OutputStream fos = fa.openOutputStreamElement(outFile);

            outDescriptor = fa.getFileSync(fos);
            fileStreamOut = new DeflaterOutputStream(fos,
                    new Deflater(Deflater.DEFAULT_COMPRESSION), bufferSize);
        } catch (IOException e) {
            throw Trace.error(Trace.FILE_IO_ERROR, Trace.Message_Pair,
                              new Object[] {
View Full Code Here


     *  never pre-exists
     */
    protected void openFile() throws HsqlException {

        try {
            FileAccess   fa  = isDump ? FileUtil.getDefaultInstance()
                                      : database.getFileAccess();
            OutputStream fos = fa.openOutputStreamElement(outFile);

            outDescriptor = fa.getFileSync(fos);
            fileStreamOut = new BufferedOutputStream(fos, 2 << 12);
        } catch (IOException e) {
            throw Trace.error(Trace.FILE_IO_ERROR, Trace.Message_Pair,
                              new Object[] {
                e.toString(), outFile
View Full Code Here

  protected void openFile()
    throws HsqlException
  {
    try
    {
      FileAccess localFileAccess = this.database.getFileAccess();
      OutputStream localOutputStream = localFileAccess.openOutputStreamElement(this.outFile);
      this.outDescriptor = localFileAccess.getFileSync(localOutputStream);
      this.fileStreamOut = new DeflaterOutputStream(localOutputStream, new Deflater(-1), 32768);
    }
    catch (IOException localIOException)
    {
      throw Trace.error(29, 115, new Object[] { localIOException.toString(), this.outFile });
View Full Code Here

  protected void openFile()
    throws HsqlException
  {
    try
    {
      FileAccess localFileAccess = this.isDump ? FileUtil.getDefaultInstance() : this.database.getFileAccess();
      OutputStream localOutputStream = localFileAccess.openOutputStreamElement(this.outFile);
      this.outDescriptor = localFileAccess.getFileSync(localOutputStream);
      this.fileStreamOut = new BufferedOutputStream(localOutputStream, 8192);
    }
    catch (IOException localIOException)
    {
      throw Trace.error(29, 115, new Object[] { localIOException.toString(), this.outFile });
View Full Code Here

TOP

Related Classes of org.hsqldb.lib.FileAccess

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.