1 21 22 package org.apache.derby.iapi.store.access; 23 24 import org.apache.derby.iapi.error.StandardException; 25 import org.apache.derby.iapi.store.access.DatabaseInstant; 26 import org.apache.derby.io.StorageFile; 27 28 import java.io.FileNotFoundException ; 29 import java.io.IOException ; 30 import java.io.InputStream ; 31 32 60 public interface FileResource { 61 62 65 public static final String JAR_DIRECTORY_NAME = "jar"; 66 67 79 public long add(String name,InputStream source) 80 throws StandardException; 81 82 93 public void remove(String name, long currentGenerationId, boolean purgeOnCommit) 94 throws StandardException; 95 96 111 public long replace(String name, long currentGenerationId, InputStream source,boolean purgeOnCommit) 112 throws StandardException; 113 114 127 public StorageFile getAsFile(String name, long generationId); 128 129 135 public InputStream getAsStream(String name, long generationId) 136 throws IOException ; 137 138 141 public char getSeparatorChar(); 142 } 143 | Popular Tags |