当前位置: 首页>>代码示例>>Java>>正文


Java FileAccess.openOutputStreamElement方法代码示例

本文整理汇总了Java中org.hsqldb.lib.FileAccess.openOutputStreamElement方法的典型用法代码示例。如果您正苦于以下问题:Java FileAccess.openOutputStreamElement方法的具体用法?Java FileAccess.openOutputStreamElement怎么用?Java FileAccess.openOutputStreamElement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.hsqldb.lib.FileAccess的用法示例。


在下文中一共展示了FileAccess.openOutputStreamElement方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: openFile

import org.hsqldb.lib.FileAccess; //导入方法依赖的package包/类
protected void openFile() {

        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 Error.error(ErrorCode.FILE_IO_ERROR,
                              ErrorCode.M_Message_Pair, new Object[] {
                e.toString(), outFile
            });
        }
    }
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:17,代码来源:ScriptWriterZipped.java

示例2: openFile

import org.hsqldb.lib.FileAccess; //导入方法依赖的package包/类
/**
 *  File is opened in append mode although in current usage the file
 *  never pre-exists
 */
protected void openFile() {

    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 Error.error(ErrorCode.FILE_IO_ERROR,
                          ErrorCode.M_Message_Pair, new Object[] {
            e.toString(), outFile
        });
    }
}
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:21,代码来源:ScriptWriterBase.java

示例3: openFile

import org.hsqldb.lib.FileAccess; //导入方法依赖的package包/类
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[] {
                e.toString(), outFile
            });
        }
    }
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:17,代码来源:ScriptWriterZipped.java

示例4: openFile

import org.hsqldb.lib.FileAccess; //导入方法依赖的package包/类
/**
 *  File is opened in append mode although in current usage the file
 *  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
        });
    }
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:21,代码来源:ScriptWriterBase.java

示例5: openFile

import org.hsqldb.lib.FileAccess; //导入方法依赖的package包/类
protected void openFile() {

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

            outDescriptor = fa.getFileSync(fos);
            fileStreamOut = fos;
            fileStreamOut = new BufferedOutputStream(fos, 1 << 14);
        } catch (IOException e) {
            throw Error.error(e, ErrorCode.FILE_IO_ERROR,
                              ErrorCode.M_Message_Pair, new Object[] {
                e.toString(), outFile
            });
        }
    }
 
开发者ID:RabadanLab,项目名称:Pegasus,代码行数:18,代码来源:ScriptWriterEncode.java

示例6: openFile

import org.hsqldb.lib.FileAccess; //导入方法依赖的package包/类
/**
 *  File is opened in append mode although in current usage the file
 *  never pre-exists
 */
protected void openFile() {

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

        outDescriptor = fa.getFileSync(fos);
        fileStreamOut = fos;
        fileStreamOut = new BufferedOutputStream(fos, 1 << 14);
    } catch (IOException e) {
        throw Error.error(e, ErrorCode.FILE_IO_ERROR,
                          ErrorCode.M_Message_Pair, new Object[] {
            e.toString(), outFile
        });
    }
}
 
开发者ID:RabadanLab,项目名称:Pegasus,代码行数:22,代码来源:ScriptWriterBase.java


注:本文中的org.hsqldb.lib.FileAccess.openOutputStreamElement方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。