/openjdk7/jdk/test/sun/nio/cs/ |
H A D | ReadZero.java | 5 * 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 40 InputStream is = new FileInputStream(f) { 47 is.read(new byte[1], 0, 1); // ok 48 InputStreamReader isr = new InputStreamReader(is); 57 is.close();
|
/openjdk7/jdk/test/java/security/cert/CertPathBuilder/selfIssued/ |
H A D | DisableRevocation.java | 5 * 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 44 * A test case helps to ensure that a certification path building process is 144 ByteArrayInputStream is = 146 Certificate selfSignedCert = cf.generateCertificate(is); 161 ByteArrayInputStream is; 163 is = new ByteArrayInputStream(targetCertStr.getBytes()); 164 Certificate cert = cf.generateCertificate(is); 167 is [all...] |
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/ior/ |
H A D | POAObjectKeyTemplate.java | 5 * 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 public POAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is ) 54 super( orb, magic, scid, is.read_long(), is.read_string(), 55 new ObjectAdapterIdArray( POANameHelper.read( is ) ) ) ; 57 setORBVersion( is ) ; 63 public POAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is, argument 66 super( orb, magic, scid, is [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/util/ |
H A D | NoCloseInputStream.java | 5 * 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 public NoCloseInputStream(InputStream is) { argument 39 super(is);
|
/openjdk7/jdk/test/java/io/PipedOutputStream/ |
H A D | ClosedWrite.java | 5 * 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 34 * This class tests to see if an IOException is thrown when 35 * an attempt is made to write to a closed PipedOutputStream. 42 PipedInputStream is = new PipedInputStream(); 43 os.connect(is);
|
H A D | DeadReader.java | 5 * 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 28 * end thread is dead. 39 PipedInputStream is = new PipedInputStream(); 40 is.connect(os); 43 LazyReader lr = new LazyReader(is);
|
/openjdk7/jdk/test/java/io/SequenceInputStream/ |
H A D | ConstructorNull.java | 5 * 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 36 * streams it is given on input are null 44 ByteArrayInputStream is = new ByteArrayInputStream(data); 47 SequenceInputStream sis = new SequenceInputStream(null,is);
|
/openjdk7/jdk/test/java/io/charStreams/ |
H A D | UTF16.java | 5 * 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 = new ByteArrayInputStream(array); 39 Reader r = new InputStreamReader(is, "UTF-16LE");
|
/openjdk7/jdk/test/java/security/cert/CertificateFactory/ |
H A D | BadX509CertData.java | 5 * 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 40 InputStream is = new ByteArrayInputStream(data.getBytes("ISO8859_1")); 42 Certificate cert = factory.generateCertificate(is);
|
/openjdk7/jdk/test/sun/net/www/protocol/jar/ |
H A D | GetContentType.java | 5 * 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 40 InputStream is = (InputStream) url.getContent(); 41 if (is == null)
|
H A D | copyin.sh | 7 # 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 26 echo current directory is `pwd`
|
/openjdk7/langtools/test/tools/javac/generics/inference/7086601/ |
H A D | T7086601a.java | 4 * @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/jdk/test/java/nio/charset/coders/ |
H A D | StreamTimeout.java | 5 * 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 67 private static void gobble(InputStream is, Reader rd, argument 71 int a = is.available(); 103 InputStream is = s.getInputStream(); 104 Reader rd = new InputStreamReader(is, charset); 106 while (is.available() <= 0) 109 gobble(is, rd, 'a', false); 110 gobble(is, r [all...] |
/openjdk7/jaxp/src/javax/xml/parsers/ |
H A D | SAXParser.java | 5 * 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 54 * Once an instance of this class is obtained, XML can be parsed from 63 * to create is named <code>"javax.xml.parsers.SAXParserFactory"</code>. 64 * This property names a class that is a concrete subclass of this 65 * abstract class. If no property is defined, a platform default 68 * As the content is parsed by the underlying parser, methods of the 92 * <p><code>SAXParser</code> is reset to the same state as when it was created with 94 * <code>reset()</code> is designe 132 parse(InputStream is, HandlerBase hb) argument 160 parse( InputStream is, HandlerBase hb, String systemId) argument 188 parse(InputStream is, DefaultHandler dh) argument 213 parse( InputStream is, DefaultHandler dh, String systemId) argument 348 parse(InputSource is, HandlerBase hb) argument 379 parse(InputSource is, DefaultHandler dh) argument [all...] |
/openjdk7/jdk/test/sun/net/www/http/KeepAliveStream/ |
H A D | KeepAliveStreamCloseWithWrongContentLength.java | 5 * 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 39 InputStream is; field in class:KeepAliveStreamCloseWithWrongContentLength.XServer 50 InputStream is = s.getInputStream(); 53 is.read(); 63 // Note: If this line is missing, everything works fine. 85 InputStream is = urlc.getInputStream (); 89 c=is.read(); 91 is [all...] |
/openjdk7/jdk/test/com/sun/net/httpserver/ |
H A D | TestLogging.java | 5 * 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 68 InputStream is = urlc.getInputStream(); 69 while (is.read() != -1) ; 70 is.close(); 75 is = urlc.getInputStream(); 76 while (is.read() != -1) ; 77 is.close(); 86 is [all...] |
/openjdk7/jdk/test/com/sun/net/httpserver/bugs/ |
H A D | B6886436.java | 5 * 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 = urlc.getInputStream(); 58 while (is.read()!= -1) ; 59 is.close (); 62 is = urlc.getInputStream(); 63 while (is.read()!= -1); 64 is.close (); 83 InputStream is [all...] |
/openjdk7/jdk/test/java/security/cert/CertPathValidator/nameConstraints/ |
H A D | NameConstraintsWithRID.java | 5 * 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 98 ByteArrayInputStream is; 100 is = new ByteArrayInputStream(targetCertStr.getBytes()); 101 Certificate targetCert = cf.generateCertificate(is); 103 is = new ByteArrayInputStream(subCaCertStr.getBytes()); 104 Certificate subCaCert = cf.generateCertificate(is); 106 is = new ByteArrayInputStream(selfSignedCertStr.getBytes()); 107 Certificate selfSignedCert = cf.generateCertificate(is); [all...] |
H A D | NameConstraintsWithUnexpectedRID.java | 5 * 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 98 ByteArrayInputStream is; 100 is = new ByteArrayInputStream(targetCertStr.getBytes()); 101 Certificate targetCert = cf.generateCertificate(is); 103 is = new ByteArrayInputStream(subCaCertStr.getBytes()); 104 Certificate subCaCert = cf.generateCertificate(is); 106 is = new ByteArrayInputStream(selfSignedCertStr.getBytes()); 107 Certificate selfSignedCert = cf.generateCertificate(is); [all...] |
H A D | NameConstraintsWithoutRID.java | 5 * 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 98 ByteArrayInputStream is; 100 is = new ByteArrayInputStream(targetCertStr.getBytes()); 101 Certificate targetCert = cf.generateCertificate(is); 103 is = new ByteArrayInputStream(subCaCertStr.getBytes()); 104 Certificate subCaCert = cf.generateCertificate(is); 106 is = new ByteArrayInputStream(selfSignedCertStr.getBytes()); 107 Certificate selfSignedCert = cf.generateCertificate(is); [all...] |
/openjdk7/jdk/test/java/util/zip/ |
H A D | InfoZip.java | 5 * 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...] |
/openjdk7/corba/src/share/classes/com/sun/corba/se/spi/ior/ |
H A D | EncapsulationFactoryBase.java | 5 * 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 InputStream is = EncapsulationUtility.getEncapsulationStream( in ) ; 48 return readContents( is ) ; 51 protected abstract Identifiable readContents( InputStream is ) ;
|
/openjdk7/jdk/src/share/classes/sun/awt/image/ |
H A D | FileImageSource.java | 5 * 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 46 // when the image is retrieved from the cache. 51 InputStream is; 53 is = new BufferedInputStream(new FileInputStream(imagefile)); 64 return new GifImageDecoder(this, is); 67 return new JPEGImageDecoder(this, is); 69 return new XbmImageDecoder(this, is); 73 return getDecoder(is); [all...] |
/openjdk7/jdk/test/sun/security/tools/jarsigner/ |
H A D | Test4431684.java | 5 * 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 46 InputStream is = jf.getInputStream(je); 48 while ((n = is.read(buffer, 0, buffer.length)) != -1) { 50 is.close();
|
/openjdk7/jdk/src/share/sample/nio/server/ |
H A D | URLDumper.java | 33 * This source code is provided to illustrate the usage of a given feature 69 InputStream is = url.openStream(); 73 while ((read = is.read(bytes)) != -1) { 77 is.close();
|