1 7 8 package javax.jnlp; 9 10 import java.io.InputStream; 11 import java.io.OutputStream; 12 import java.io.File; 13 import java.io.IOException; 14 15 34 public interface FileContents { 35 36 43 public String getName() throws IOException; 44 45 52 public InputStream getInputStream() throws IOException; 53 54 64 public OutputStream getOutputStream(boolean overwrite) throws IOException; 65 66 73 public long getLength() throws IOException; 74 75 82 public boolean canRead() throws IOException; 83 84 91 public boolean canWrite() throws IOException; 92 93 107 public JNLPRandomAccessFile getRandomAccessFile(String mode) throws IOException; 108 109 117 public long getMaxLength() throws IOException; 118 119 132 public long setMaxLength(long maxlength) throws IOException; 133 134 } 135 136 137 138 139 | Popular Tags |