4 package uk.ac.vamsas.client;
6 import java.io.DataInput;
7 import java.io.DataInputStream;
8 import java.io.IOException;
9 import java.io.InputStream;
10 import java.util.jar.JarInputStream;
12 import org.apache.commons.logging.Log;
13 import org.apache.commons.logging.LogFactory;
17 * LATER: this may not be a necessary or useful class to return from IClientAppdata get*InputStream() methods
19 public class AppDataInputStream extends DataInputStream implements DataInput {
20 private Log log = LogFactory.getLog(AppDataInputStream.class);
21 private boolean isOpen = false;
23 * Wrapper for writing to/from AppData Entries in a Vamsas Document.
25 public AppDataInputStream(InputStream inputstream) {
31 * @see java.io.FilterInputStream#close()
33 public void close() throws IOException {
35 log.debug("close() called on closed AppDataInputStream.");
36 // throw new IOException("Attempt to close an already closed AppDataInputStream");
43 * Will return zero if stream has been closed.
44 * @see java.io.FilterInputStream#available()
46 public int available() throws IOException {
48 return super.available();