Searched refs:is (Results 1 - 25 of 234) sorted by relevance

12345678910

/glassfish-3.1.2/tests/quicklook/admincli/src/test/admincli/util/
H A DStreamGobbler.java37 * only if the new code is made subject to such option by the copyright
57 InputStream is; field in class:StreamGobbler
60 public StreamGobbler(InputStream is, String type) argument
62 this.is = is;
70 InputStreamReader isr = new InputStreamReader(is);
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/util/
H A DArchivistUtils.java37 * only if the new code is made subject to such option by the copyright
60 public static void copy(InputStream is, OutputStream os) throws IOException { argument
61 copyWithoutClose(is, os);
62 is.close();
70 public static void copyWithoutClose(InputStream is, OutputStream os) throws IOException { argument
75 len = is.read(buf, 0, buf.length);
/glassfish-3.1.2/common/common-util/src/main/java/org/glassfish/admin/payload/
H A DTextPayloadImpl.java37 * only if the new code is made subject to such option by the copyright
50 * This class is mainly useful so the RemoteCommand logic can treat the return
51 * payload from a command the same, regardless of whether it is actually
55 * This class is here primarily to make the plain text in a response look like
56 * the more general multi-part responses so the RemoteCommand class is free
64 * contains a single part. This is for compatibility with existing clients
80 private final InputStream is; field in class:TextPayloadImpl.Inbound
83 public static Inbound newInstance(final String messageContentType, final InputStream is) { argument
84 return new Inbound(messageContentType, is);
89 * @return true if the content type is supporte
96 Inbound(final String contentType, final InputStream is) argument
[all...]
H A DPayloadImpl.java37 * only if the new code is made subject to such option by the copyright
146 enhancedProps.setProperty("data-request-is-recursive", Boolean.toString(isRecursive));
187 enhancedProps.setProperty("data-request-is-recursive", Boolean.toString(isRecursive));
201 * If this is also a recursive replacement, add file-xfer
215 * This is a non-directory file. Add a simple replacement
246 final InputStream is = new BufferedInputStream(new FileInputStream(f));
248 contentType = URLConnection.guessContentTypeFromStream(is);
253 if (is != null) {
254 is.close();
284 * which will be used to inject as a paramter if the receiver is
418 newInstance(final String payloadContentType, final InputStream is) argument
509 newInstance( final String contentType, final String name, final Properties props, final InputStream is) argument
568 private final InputStream is; field in class:PayloadImpl.Part.Streamed
577 Streamed( final String contentType, final String name, final Properties props, final InputStream is) argument
597 private InputStream is = null; field in class:PayloadImpl.Part.Buffered
[all...]
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/startup/
H A DCatalinaProperties.java37 * only if the new code is made subject to such option by the copyright
53 * distributed under the License is distributed on an "AS IS" BASIS,
120 InputStream is = null;
126 is = (new URL(configUrl)).openStream();
132 if (is == null) {
137 is = new FileInputStream(properties);
143 if (is == null) {
145 is = CatalinaProperties.class.getResourceAsStream
152 if (is != null) {
155 properties.load(is);
[all...]
/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/admin/adapter/
H A DUtils.java37 * only if the new code is made subject to such option by the copyright
55 * If there is any problem in reading an IOException is thrown.
62 InputStream is = Utils.class.getClassLoader().getResourceAsStream(file);
64 BufferedInputStream bis = new BufferedInputStream(is);
73 is.close();
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/util/
H A DIOTools.java37 * only if the new code is made subject to such option by the copyright
53 * distributed under the License is distributed on an "AS IS" BASIS,
77 * Read input from reader and write it to writer until there is no more
103 * until there is no more input from input stream.
109 public static void flow( InputStream is, OutputStream os, byte[] buf ) argument
112 while ( (numRead = is.read(buf) ) >= 0) {
120 public static void flow( InputStream is, OutputStream os ) argument
123 flow( is, os, buf );
/glassfish-3.1.2/common/annotation-framework/src/main/java/org/glassfish/apf/factory/
H A DFactory.java37 * only if the new code is made subject to such option by the copyright
57 * The Factory is responsible for initializing a ready to use AnnotationProcessor.
83 InputStream is = null;
86 is = AnnotationProcessorImpl.class.getClassLoader().getResourceAsStream(SKIP_ANNOTATION_CLASS_LIST_URL);
87 if (is==null) {
91 bf = new BufferedReader(new InputStreamReader(is));
100 if (is != null) {
102 is.close();
/glassfish-3.1.2/common/internal-api/src/main/java/org/glassfish/internal/deployment/
H A DGenericSniffer.java37 * only if the new code is made subject to such option by the copyright
90 * Returns true if the passed file or directory is recognized by this
140 * will be locked as long as there is at least one module loaded in the
143 * @param containerHome is where the container implementation resides
162 * Returns the list of annotations types that this sniffer is interested in.
168 * @return list of annotations this sniffer is interested in.
205 * In each returned map entry the key is a path and the value is the
211 * to override this implementation to return whatever information is
213 * Map is i
275 readDeploymentConfig(final InputStream is) argument
[all...]
/glassfish-3.1.2/appclient/client/acc/src/main/java/org/glassfish/appclient/client/jws/boot/
H A DLaunchSecurityHelper.java37 * only if the new code is made subject to such option by the copyright
92 * @throws IOException if the resource is not found or in case of error while loading it
96 InputStream is = null;
98 is = contextClass.getResourceAsStream(resourcePath);
99 if (is == null) {
104 BufferedReader reader = new BufferedReader(new InputStreamReader(is));
118 if (is != null) {
119 is.close();
/glassfish-3.1.2/deployment/common/src/main/java/com/sun/enterprise/deployment/deploy/shared/
H A DMemoryMappedArchive.java37 * only if the new code is made subject to such option by the copyright
86 public MemoryMappedArchive(InputStream is) throws IOException { argument
87 read(is);
98 private void read(InputStream is) throws IOException{ argument
100 ArchivistUtils.copy(is,baos);
110 FileInputStream is = null;
112 is = new FileInputStream(in);
113 read(is);
115 if (is != null) {
116 is
[all...]
/glassfish-3.1.2/ejb/ejb-container/src/main/java/com/sun/ejb/base/io/
H A DJ2EEObjectStreamFactoryImpl.java37 * only if the new code is made subject to such option by the copyright
106 final InputStream is,
116 ois = new EJBObjectInputStream(is, appClassLoader, resolveObject);
124 is, appClassLoader, resolveObject);
132 ois = new ObjectInputStream(is);
105 createObjectInputStream( final InputStream is, final boolean resolveObject, final ClassLoader appClassLoader) argument
H A DJavaEEIOUtilsImpl.java37 * only if the new code is made subject to such option by the copyright
57 public ObjectInputStream createObjectInputStream(InputStream is, boolean resolveObject, ClassLoader loader) throws Exception { argument
58 return IOUtils.createObjectInputStream(is, resolveObject, loader);
/glassfish-3.1.2/ejb/ejb-container/src/main/java/com/sun/ejb/spi/io/
H A DJ2EEObjectStreamFactory.java37 * only if the new code is made subject to such option by the copyright
80 public ObjectInputStream createObjectInputStream(InputStream is, argument
/glassfish-3.1.2/verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/connector/
H A DConnectorCheckMgrImpl.java37 * only if the new code is made subject to such option by the copyright
65 * This manager is responsible for performing compliance tests on rar files. rar
90 FileInputStream is = new FileInputStream(file);
92 if (is != null) {
93 Result result = new ParseDD().validateConnectorDescriptor(is);
100 if(is!=null)
101 is.close();
/glassfish-3.1.2/build/glassfish-obr-builder/src/main/java/org/glassfish/obrbuilder/xmlentities/
H A DObrXmlReaderWriter.java37 * only if the new code is made subject to such option by the copyright
62 * Closing the stream is caller's responsibility.
64 * @param is InputStream to read the XML content from
68 public Repository read(InputStream is) throws IOException { argument
71 return Repository.class.cast(unmarshaller.unmarshal(is));
84 InputStream is = new BufferedInputStream(input.toURL().openStream());
86 return read(is);
89 is.close();
105 * Closing the stream is caller's responsibility.
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/archivist/
H A DExtensionsArchivist.java37 * only if the new code is made subject to such option by the copyright
60 * An extension archivist is processing extensions deployment descriptors like
63 * They do not represent a top level archivist, as it is not capable of loading
113 InputStream is = null;
115 is = archive.getEntry(confDD.getDeploymentDescriptorPath());
116 if (is == null) {
127 return confDD.read(descriptor, is);
130 if (is != null) {
131 is.close();
151 InputStream is
[all...]
/glassfish-3.1.2/tests/community/web/helloworld/src/test/
H A DHelloJSPTestNG.java37 * only if the new code is made subject to such option by the copyright
54 *HTML resource.Each resources (HTML,JSP,Servlet) is invoked as a separate test.
69 *If two asserts are mentioned in one method, then last assert is taken in
84 System.out.println("URL is: "+testurl);
92 InputStream is = conn.getInputStream();
93 BufferedReader input = new BufferedReader(new InputStreamReader(is));
120 //Your server is up and running!
123 System.out.println("URL is: "+testurl);
130 InputStream is = conn.getInputStream();
131 BufferedReader input = new BufferedReader(new InputStreamReader(is));
[all...]
/glassfish-3.1.2/tests/quicklook/web/helloworld/src/test/
H A DHelloJSPTestNG.java37 * only if the new code is made subject to such option by the copyright
54 *HTML resource.Each resources (HTML,JSP,Servlet) is invoked as a separate test.
69 *If two asserts are mentioned in one method, then last assert is taken in
84 //System.out.println("URL is: "+testurl);
92 InputStream is = conn.getInputStream();
93 BufferedReader input = new BufferedReader(new InputStreamReader(is));
120 //Your server is up and running!
123 //System.out.println("URL is: "+testurl);
130 InputStream is = conn.getInputStream();
131 BufferedReader input = new BufferedReader(new InputStreamReader(is));
[all...]
/glassfish-3.1.2/build/maven-glassfishbuild-plugin/src/main/java/com/sun/enterprise/build/
H A DUnpack200Mojo.java37 * only if the new code is made subject to such option by the copyright
93 System.out.println("Source directory is " + sourceDirectory);
94 System.out.println("Out is " + outputDirectory);
120 InputStream is;
125 is = new BufferedInputStream(new GZIPInputStream(fis));
128 is = new BufferedInputStream(fis);
151 unpkr.unpack(is, jout);
152 is.close();
165 DataInputStream is = new DataInputStream(new FileInputStream(in));
166 int i = is
[all...]
/glassfish-3.1.2/verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/apiscan/classfile/
H A DBCELClassFileLoader1.java37 * only if the new code is made subject to such option by the copyright
56 * Yet another factory for {@link BCELClassFile}. This is not a public class, as
60 * information if available in a Jar file. This is because BCEL provided class
76 * @param classPath represents the search path that is used by this loader.
95 InputStream is = cp.getClassFile(internalClassName, ".class") // NOI18N
98 ClassFile cf = new BCELClassFile(is, internalClassName + ".class"); // NOI18N
102 is.close();
106 //This method is neede to be protected against users who are passing us
117 ". Perhaps your package name is incorrect or you passed the" +
/glassfish-3.1.2/verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/tests/connector/cci/
H A DInteractionSpecSerializable.java37 * only if the new code is made subject to such option by the copyright
84 Class is = findImplementorOf(descriptor, "javax.resource.cci.InteractionSpec");
85 if (is !=null) {
86 testImplementationOf(is, "java.io.Serializable", result);
95 "Error: While the CCI interfaces are implemented, the javax.resource.cci.InteractionSpec is not"));
/glassfish-3.1.2/orb/orb-iiop/src/main/java/org/glassfish/enterprise/iiop/impl/
H A DHandleDelegateClassLoader.java37 * only if the new code is made subject to such option by the copyright
56 // This is called only if the class could not be loaded by
83 InputStream is = resCl.getResourceAsStream("org/glassfish/enterprise/iiop/impl/IIOPHandleDelegate.class");
86 byte[] buf = new byte[4096]; // currently IIOPHandleDelegate is < 4k
88 while ( (nread = is.read(buf, 0, buf.length)) != -1 ) {
92 is.close();
/glassfish-3.1.2/appclient/server/core/src/main/java/org/glassfish/appclient/server/core/
H A DClientJarMakerImpl.java37 * only if the new code is made subject to such option by the copyright
66 * This class is responsible for creating an appclient jar file that
84 * @param descriptor is the loaded module's deployment descriptor
85 * @param source is the abstract archive for the source module deployed
86 * @param target is the abstract archive for the desired appclient container jar file
88 * @param props is a properties collection to pass implementation parameters
101 * @param descriptor is the loaded module's deployment descriptor
102 * @param source is the abstract archive for the source module deployed
103 * @param source is the abstract archive for the generated xml directory
104 * @param target is th
[all...]
/glassfish-3.1.2/common/container-common/src/main/java/org/glassfish/javaee/services/
H A DAjpProcessorTaskFactoryProvider.java37 * only if the new code is made subject to such option by the copyright
86 LOGGER.log(Level.WARNING, "JK configuration file {0} is not found.",
91 InputStream is = null;
94 is = new FileInputStream(configFile);
96 props.load(is);
102 if (is != null) {
104 is.close();

Completed in 58 milliseconds

12345678910