filebasedstreamfactory.java
来自「Java的面向对象数据库系统的源代码」· Java 代码 · 共 42 行
JAVA
42 行
// You can redistribute this software and/or modify it under the terms of// the Ozone Library License version 1 published by ozone-db.org.//// The original code and portions created by SMB are// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.//// $Id: FileBasedStreamFactory.java,v 1.2 2003/11/07 21:34:22 per_nyfelt Exp $package org.ozoneDB.tools.OPP.srcgen.streamfactory;import org.ozoneDB.tools.OPP.OPPHelper;import java.io.File;/** * * @author Joakim Ohlrogge */public abstract class FileBasedStreamFactory { private File directory; private String extension; private String postFix; protected File getFile(String className) { File file = new File(directory, OPPHelper.classFileBasename(className) + postFix + "." + extension); return file; } protected String getFileName(String className) { return getFile(className).toString(); } public FileBasedStreamFactory(File directory, String extension) { this(directory, extension, ""); } public FileBasedStreamFactory(File directory, String extension, String postFix) { this.directory = directory; this.extension = extension; this.postFix = postFix; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?