📄 filebasedstreamfactory.java
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -