1 17 18 package org.pentaho.core.repository; 19 20 import java.util.*; 21 import java.io.*; 22 23 import org.pentaho.core.repository.content.ContentException; 24 25 28 public interface IContentItemFile { 29 30 33 public String getOsFileName(); 34 35 38 public String getOsPath(); 39 40 43 public String getActionName(); 44 45 48 public String getId(); 49 50 53 public long getFileSize(); 54 55 58 public Date getFileDateTime(); 59 60 64 public InputStream getInputStream() throws ContentException; 65 66 70 public Reader getReader() throws ContentException; 71 72 79 public OutputStream getOutputStream(boolean overWriteOk) throws ContentException; 80 81 90 public OutputStream getOutputStream(boolean overWriteOk, boolean append) throws ContentException; 91 92 100 public long copyToFile(String newFileName) throws ContentException; 101 102 107 public boolean deleteOsFile(); 108 109 } 110 | Popular Tags |