1 23 24 package com.sun.enterprise.deployapi.config; 25 26 import java.io.*; 27 import java.util.Enumeration ; 28 import java.util.jar.Manifest ; 29 import javax.enterprise.deploy.model.DeployableObject ; 30 31 import com.sun.enterprise.deployment.deploy.shared.AbstractArchive; 32 import com.sun.enterprise.util.LocalStringManagerImpl; 33 34 40 public class ConfigBeanArchive extends AbstractArchive { 41 42 private DeployableObject deployObject; 43 44 private static LocalStringManagerImpl localStrings = 45 new LocalStringManagerImpl(ConfigBeanArchive.class); 46 47 48 public ConfigBeanArchive(DeployableObject deployObject) { 49 this.deployObject = deployObject; 50 } 51 52 57 public OutputStream addEntry(String name) throws IOException { 58 throw new IOException(localStrings.getLocalString( 59 "enterprise.deployapi.config.configbeanarchive.notimplemented", 60 "Operation not implemented")); 61 } 62 63 66 public void close() throws IOException { 67 } 69 70 76 public void closeEntry(AbstractArchive os) throws IOException { 77 throw new IOException(localStrings.getLocalString( 78 "enterprise.deployapi.config.configbeanarchive.notimplemented", 79 "Operation not implemented")); 80 81 } 82 83 88 public void closeEntry(OutputStream os) throws IOException { 89 throw new IOException(localStrings.getLocalString( 90 "enterprise.deployapi.config.configbeanarchive.notimplemented", 91 "Operation not implemented")); 92 } 93 94 97 public boolean delete() { 98 return false; 99 } 100 101 105 public Enumeration entries() { 106 return deployObject.entries(); 107 } 108 109 114 public Enumeration entries(Enumeration embeddedArchives) { 115 return entries(); 117 } 118 119 122 public boolean exists() { 123 return false; 124 } 125 126 129 public String getArchiveUri() { 130 return null; 131 } 132 133 136 public long getArchiveSize() throws NullPointerException , SecurityException { 137 return -1; 138 } 139 140 145 public AbstractArchive getEmbeddedArchive(String name) throws IOException { 146 throw new IOException(localStrings.getLocalString( 147 "enterprise.deployapi.config.configbeanarchive.notimplemented", 148 "Operation not implemented")); 149 150 } 151 152 157 public InputStream getEntry(String name) throws IOException { 158 return deployObject.getEntry(name); 159 } 160 161 164 public Manifest getManifest() throws IOException { 165 return null; 166 } 167 168 173 public boolean renameTo(String name) { 174 return false; 175 } 176 177 180 public boolean supportsElementsOverwriting() { 181 return false; 182 } 183 184 public void closeEntry() throws IOException { 185 throw new IOException(localStrings.getLocalString( 186 "enterprise.deployapi.config.configbeanarchive.notimplemented", 187 "Operation not implemented")); 188 } 189 190 public java.net.URI getURI() { 191 return null; 192 } 193 194 public OutputStream putNextEntry(String name) throws IOException { 195 throw new IOException(localStrings.getLocalString( 196 "enterprise.deployapi.config.configbeanarchive.notimplemented", 197 "Operation not implemented")); 198 } 199 200 } 201 | Popular Tags |