<p id="dstts"><strong id="dstts"><small id="dstts"></small></strong></p>
    <tr id="dstts"><label id="dstts"><menu id="dstts"></menu></label></tr>

      1. 當前位置:首頁 >探索 >【】类代例项目名称:ucanaccess 正文

        【】类代例项目名称:ucanaccess

        來源:去住兩難網   作者:時尚   時間:2023-12-09 01:03:35
        代碼行數:10  ,類代例項目名稱:ucanaccess,碼示代碼來源:CustomLinkResolverTest.java

        示例12: getDefaultFormat

        import com.healthmarketscience.jackcess.Database.FileFormat; //导入依赖的类代例package包/类protected FileFormat getDefaultFormat() {   return _defaultFormat;}
        开发者ID:jahlborn  ,代码来源:JackcessDenseObjectMatrix2D.java

        示例3: createTempDb

        import com.healthmarketscience.jackcess.Database.FileFormat; //导入依赖的码示package包/类/** * Creates a temporary database for holding the table data from * linkeeFileName. * * @param customFile custom file state returned from { @link #loadCustomFile} * @param format the access format for the temp db * @param inMemory whether or not the temp db should be entirely in memory *                 (while this will be faster, it should only be used if *                 table data is expected to fit entirely in memory) * @param tempDir the temp dir for a file based temp db ({ @code null} for *                the system default temp directory) * * @return the temp db for holding the linked table info */protected Database createTempDb(Object customFile, FileFormat format,                                 boolean inMemory, File tempDir)  throws IOException{   File dbFile = null;  FileChannel channel = null;  boolean success = false;  try {     if(inMemory) {       dbFile = new File(MEM_DB_PREFIX + DB_ID.nextLong() +                        format.getFileExtension());      channel = MemFileChannel.newChannel();    } else {       dbFile = File.createTempFile(FILE_DB_PREFIX, format.getFileExtension(),                                   tempDir);      channel = new RandomAccessFile(dbFile, DatabaseImpl.RW_CHANNEL_MODE)        .getChannel();    }    TempDatabaseImpl.initDbChannel(channel, format);    TempDatabaseImpl db = new TempDatabaseImpl(this, customFile, dbFile,                                                channel, format);    success = true;    return db;  } finally {     if(!success) {       ByteUtil.closeQuietly(channel);      deleteDbFile(dbFile);      closeCustomFile(customFile);    }  }}
        开发者ID:jahlborn ,项目名称:jackcess ,类代例项目名称:jackcess ,码示项目名称:jackcess ,类代例项目名称:jackcess,码示代码来源:CustomLinkResolverTest.java

        示例14: DBReference

        import com.healthmarketscience.jackcess.Database.FileFormat; //导入依赖的类代例package包/類public DBReference(File fl, FileFormat ff, JackcessOpenerInterface jko,		final String pwd) throws IOException, SQLException { 	this.dbFile = fl;	this.pwd = pwd;	this.jko = jko;	this.updateLastModified();	Logger.turnOffJackcessLog();	if (!fl.exists() && ff != null) { 		dbIO = DatabaseBuilder.create(ff, fl);	} else { 		dbIO = jko.open(fl, pwd);		try { 			this.readOnlyFileFormat = this.dbIO.getFileFormat().equals(					FileFormat.V1997);		} catch (Exception ignore) { 			// Logger.logWarning(e.getMessage());		}		this.dbIO.setLinkResolver(new LinkResolver() { 			public Database resolveLinkedDatabase(Database linkerDb,					String linkeeFileName) throws IOException { 				File linkeeFile = new File(linkeeFileName);				Map<String, String> emr = DBReference.this.externalResourcesMapping;				if (!linkeeFile.exists()						&& emr != null						&& emr.containsKey(linkeeFile.getAbsolutePath()								.toLowerCase())) { 					linkeeFile = new File(emr.get(linkeeFile							.getAbsolutePath().toLowerCase()));				}				if (!linkeeFile.exists()) { 					Logger.logWarning("External file "							+ linkeeFile.getAbsolutePath()							+ " does not exist");				}				Database ldb = open(linkeeFile, pwd);				return ldb;			}		});		dbIO.setEnforceForeignKeys(false);	}}
        开发者ID:andrew-nguyen97在线观看,中文字幕无码日韩欧毛,稀缺资源小12萝裸体视频福利2021,最近更新资源中文字幕
          <p id="dstts"><strong id="dstts"><small id="dstts"></small></strong></p>
          <tr id="dstts"><label id="dstts"><menu id="dstts"></menu></label></tr>

            1. <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <文本链> <文本链> <文本链> <文本链> <文本链> <文本链>