1 21 22 package org.apache.derby.client.am; 23 24 27 public class GetFileInputStreamAction implements java.security.PrivilegedExceptionAction { 28 private String filePathName_ = null; 30 31 private String canonicalPath_ = null; 32 33 35 public GetFileInputStreamAction(String filePathName) { 36 filePathName_ = filePathName; 37 } 38 39 41 public Object run() throws java.io.IOException { 42 java.io.File file = new java.io.File (filePathName_); 43 java.io.FileInputStream fileInputStream = new java.io.FileInputStream (file); 44 canonicalPath_ = file.getCanonicalPath(); 45 return fileInputStream; 46 } 47 48 public String getCanonicalPath() { 49 return canonicalPath_; 50 } 51 } 52 | Popular Tags |