1 23 24 44 45 package com.sun.enterprise.util.zip; 46 47 import java.io.File ; 48 49 53 public class ZipItem 54 { 55 62 public ZipItem(File file, String name) throws ZipFileException 63 { 64 if(name == null || name.length() <= 0) 67 throw new ZipFileException("null or empty name for ZipItem"); 68 69 this.file = file; 70 this.name = name; 71 } 72 73 79 public String toString() 80 { 81 return "File: " + file.getPath() + ", name: " + name; 82 } 83 84 89 public String getName() 90 { 91 return this.name; 92 } 93 94 99 public File getFile() 100 { 101 return this.file; 102 } 103 104 106 File file; 107 String name; 108 } 109 | Popular Tags |