1 /* 2 * FileConstants.java 3 * 4 * Created on 12. Maerz 2006, 11:06 5 */ 6 /* 7 * Copyright 2005-2006 Schlichtherle IT Services 8 * 9 * Licensed under the Apache License, Version 2.0 (the "License"); 10 * you may not use this file except in compliance with the License. 11 * You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, software 16 * distributed under the License is distributed on an "AS IS" BASIS, 17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 * See the License for the specific language governing permissions and 19 * limitations under the License. 20 */ 21 22 package de.schlichtherle.io; 23 24 /** 25 * A package private interface with constants common to some (package private) 26 * classes in this package. 27 * 28 * @author Christian Schlichtherle 29 * @version @version@ 30 * @since TrueZIP 6.0 31 */ 32 interface FileConstants { 33 34 /** 35 * Denotes the empty archive entry name. 36 * This name is used for the <code>innerEntryName</code> field if a 37 * <code>File</code> object denotes an archive file itself. 38 * This constant is primarily used for identity comparison with archive 39 * entry names in order to detect archive files. 40 * Note that this is not really required as string constants are interned 41 * by the JVM, but this is "clean style". 42 */ 43 String EMPTY = ""; 44 45 /** 46 * The file name separator in archive entry names as a string. 47 */ 48 String ENTRY_SEPARATOR = "/"; 49 50 /** 51 * The file name separator in archive entry names as a character. 52 */ 53 char ENTRY_SEPARATOR_CHAR = '/'; 54 55 } 56