1 4 package org.openedit.repository; 5 6 import java.io.InputStream ; 7 8 9 14 public class InputStreamItem extends ContentItem 15 { 16 protected InputStream fieldInputStream; 17 18 public InputStreamItem() 19 { 20 } 21 22 25 public InputStream getInputStream() throws RepositoryException 26 { 27 return fieldInputStream; 28 } 29 public void setInputStream(InputStream inStream) 30 { 31 fieldInputStream = inStream; 32 } 33 public boolean exists() 34 { 35 return fieldInputStream != null; 36 } 37 public boolean isFolder() 38 { 39 return false; 41 } 42 public boolean isWritable() 43 { 44 return false; 46 } 47 } 48 | Popular Tags |