Searched defs:is (Results 51 - 75 of 242) sorted by relevance

12345678910

/openjdk7/jdk/test/java/security/testlibrary/
H A DCertUtils.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
75 " is not a readable file.");
105 " is not a readable file.");
237 private static byte[] getTotalBytes(InputStream is) throws IOException { argument
242 while ((n = is.read(buffer, 0, buffer.length)) != -1) {
/openjdk7/jdk/test/java/util/zip/
H A DInfoZip.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
57 InputStream is = zf.getInputStream(ze);
58 String result = contents(is);
59 is.close();
63 private static String contents(InputStream is) throws Exception { argument
66 while ((c = is.read()) != -1)
114 ZipInputStream is = new ZipInputStream(fis))
116 ze = is
[all...]
H A DZipCoding.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
56 static void testZipInputStream(InputStream is, Charset cs, argument
60 try (ZipInputStream zis = new ZipInputStream(is, cs)) {
83 InputStream is = zf.getInputStream(e);
84 if (is == null)
89 while ((nn = is.read(bBuf, n, bBuf.length-n)) != -1) {
102 byte[] bb = "This is the content of the zipfile".getBytes("ISO-8859-1");
/openjdk7/jdk/test/javax/imageio/stream/StreamCloserLeak/testapp/
H A DMain.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
75 public MyImageInputStream(InputStream is, String uniq, argument
78 super(is, new File("tmp"));
107 System.out.printf("%s: test is done!\n",uniqClassName);
/openjdk7/jdk/test/sun/net/www/http/KeepAliveStream/
H A DKeepAliveStreamClose.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
38 InputStream is; field in class:KeepAliveStreamClose.XServer
57 is = s.getInputStream ();
61 is.read();
76 * is returning zero and the calling close() stays in a loop
87 InputStream is = urlc.getInputStream ();
89 while ((c=is.read())!= -1) {
93 is
[all...]
/openjdk7/jdk/test/sun/net/www/protocol/http/
H A DFinalizer.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
33 InputStream is; field in class:XServer
49 is = s.getInputStream ();
50 BufferedReader r = new BufferedReader(new InputStreamReader(is));
92 InputStream is = urlc.getInputStream ();
93 is = urlc.getInputStream ();
94 sink (is);
98 is
113 sink(InputStream is) argument
[all...]
H A DSetChunkedStreamingMode.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
30 * @summary Unspecified NPE is thrown when streaming output mode is enabled
53 static void read (InputStream is) throws IOException { argument
56 while ((c=is.read()) != -1) {
75 InputStream is = urlc.getInputStream();
/openjdk7/langtools/test/tools/javac/generics/inference/7086601/
H A DT7086601a.java4 * @summary Error message bug: cause for method mismatch is 'null'
19 static void test1(Iterable<String> is, Iterable<Integer> ii) { argument
20 m1(is, ii);
23 static void test2(Iterable<String> is, Iterable<Integer> ii, Iterable<Double> id) { argument
24 m2(is, ii, id);
27 static void test3(Iterable<String> is, Iterable<Integer> ii) { argument
28 m3(is, ii);
31 static void test4(Iterable<String> is, Iterable<Integer> ii, Iterable<Double> id) { argument
32 m3(is, ii, id);
/openjdk7/langtools/test/tools/javac/processing/6350124/
H A DHelloWorldAP.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
61 // the easiest way to create a class file is to copy another one
62 InputStream is = getClass().getResourceAsStream("HelloWorldAP.class");
63 copy(is, os);
64 is.close();
81 void copy(InputStream is, OutputStream os) throws IOException { argument
84 while ((n = is.read(buf, 0, buf.length)) > 0)
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/util/
H A DPropertyState.java4 * This code is free software; you can redistribute it and/or modify it
10 * This code is distributed in the hope that it will be useful, but WITHOUT
13 * version 2 for more details (a copy is included in the LICENSE file that
55 public static PropertyState is(Object value) { method in class:PropertyState
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/resolver/readers/
H A DDOMCatalogReader.java18 * distributed under the License is distributed on an "AS IS" BASIS,
48 * <p>This class is used to read XML Catalogs using the DOM. This reader
60 * <p>The selection of CatalogParsers is made on the basis of the QName
80 * or "{namespaceuri}elementname". The former is used if the
81 * namespace URI is null.</p>
140 * parseCatalogEntry method. This method is expected to make
142 * entries in the catalog. It is free to do this in whatever manner
143 * is appropriate (perhaps using just the node passed in, perhaps
147 * @param catalog The catalog for which this reader is called.
148 * @param is Th
156 readCatalog(Catalog catalog, InputStream is) argument
[all...]
/openjdk7/jaxp/src/javax/xml/parsers/
H A DDocumentBuilder.java5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
49 * an instance of this class is obtained, XML can be parsed from a
72 * <p><code>DocumentBuilder</code> is reset to the same state as when it was created with
74 * <code>reset()</code> is designed to allow the reuse of existing <code>DocumentBuilder</code>s
77 * <p>The reset <code>DocumentBuilder</code> is not guaranteed to have the same {@link EntityResolver} or {@link ErrorHandler}
78 * <code>Object</code>s, e.g. {@link Object#equals(Object obj)}. It is guaranteed to have a functionally equal
99 * An <code>IllegalArgumentException</code> is thrown if the
100 * <code>InputStream</code> is nul
114 parse(InputStream is) argument
142 parse(InputStream is, String systemId) argument
225 parse(InputSource is) argument
[all...]
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/ior/
H A DGenericIdentifiable.java5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
37 * This is used for unknown components and profiles. A TAG_MULTICOMPONENT_PROFILE will be represented this way.
44 public GenericIdentifiable(int id, InputStream is) argument
47 data = EncapsulationUtility.readOctets( is ) ;
H A DIdentifiableFactoryFinderBase.java5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
66 public abstract Identifiable handleMissingFactory( int id, InputStream is ) ;
68 public Identifiable create(int id, InputStream is) argument
73 return factory.create( is ) ;
75 return handleMissingFactory( id, is ) ;
H A DOldJIDLObjectKeyTemplate.java5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
52 * value 1. Anything below 1 is considered an invalid value.
59 InputStream is, OctetSeqHolder osh )
61 this( orb, magic, scid, is );
63 osh.value = readObjectKey( is ) ;
75 * WARNING: This code is sensitive to changes in CDRInputStream
76 * getPosition. It assumes that the CDRInputStream is an
81 osh.value.length > ((CDRInputStream)is)
58 OldJIDLObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is, OctetSeqHolder osh ) argument
100 OldJIDLObjectKeyTemplate(ORB orb, int magic, int scid, InputStream is) argument
[all...]
H A DOldPOAObjectKeyTemplate.java5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
47 public OldPOAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is )
49 this( orb, magic, scid, is.read_long(), is.read_long(), is.read_long() ) ;
55 public OldPOAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is, argument
58 this( orb, magic, scid, is ) ;
59 osh.value = readObjectKey( is ) ;
[all...]
/openjdk7/corba/src/share/classes/com/sun/corba/se/spi/servicecontext/
H A DMaxStreamFormatVersionServiceContext.java5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
57 public MaxStreamFormatVersionServiceContext(InputStream is, argument
59 super(is, gv) ;
61 maxStreamFormatVersion = is.read_octet();
H A DServiceContextData.java5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
95 throwBadParam( "SERVICE_CONTEXT_ID field is not public static final", null ) ;
124 public ServiceContext makeServiceContext(InputStream is, GIOPVersion gv) argument
127 args[0] = is ;
/openjdk7/jdk/src/share/classes/org/jcp/xml/dsig/internal/dom/
H A DUtils.java15 * distributed under the License is distributed on an "AS IS" BASIS,
46 public static byte[] readBytesFromStream(InputStream is) argument
51 int read = is.read(buf);
103 * Returns true if uri is a same-document URI, false otherwise.
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DAiffFileReader.java5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
86 // the following is not strictly necessary - but was implemented like that in 1.3.0 - 1.4.1
164 // we've got everything, and the stream is at the
224 private AudioFileFormat getCOMM(InputStream is, boolean doReset) argument
227 DataInputStream dis = new DataInputStream(is);
301 // If this is not AIFC then we assume it's
338 // the chunksize is absurd. this is th
[all...]
/openjdk7/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/utils/resolver/implementations/
H A DResolverAnonymous.java15 * distributed under the License is distributed on an "AS IS" BASIS,
52 * @param is
54 public ResolverAnonymous(InputStream is) { argument
55 this._input = new XMLSignatureInput(is);
/openjdk7/jaxws/src/share/jaf_classes/javax/activation/
H A DMimetypesFileTypeMap.java5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
57 * # the format is &lt;mime type> &lt;space separated file extensions><br>
72 * The default database is shared between all instances
261 * @param is the input stream to read from
263 public MimetypesFileTypeMap(InputStream is) { argument
266 DB[PROG] = new MimeTypeFile(is);
301 * If no entry is found, the type "application/octet-stream" is returne
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/util/
H A DDataSourceSource.java5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
49 * this implementation is clunky --- weak against unexpected
63 // will return the same object, which is what's expeted out of
66 private InputStream is; field in class:DataSourceSource
111 if(is==null)
112 is = source.getInputStream();
113 return is;
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/
H A DASCIIUtility.java5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
39 // Private constructor so that this class is not instantiated
138 * this is an expensive operation that require an additional
143 public static byte[] getBytes(InputStream is) throws IOException { argument
146 bos.write(is);
148 is.close();
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/util/
H A DASCIIUtility.java5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
38 // Private constructor so that this class is not instantiated
134 public static byte[] getBytes(InputStream is) throws IOException { argument
136 bab.write(is);
140 public static void copyStream(InputStream is, OutputStream out) throws IOException { argument
145 while ((len = is.read(buf, 0, size)) != -1)

Completed in 141 milliseconds

12345678910