/openjdk7/jdk/test/java/net/URLConnection/ |
H A D | Redirect307Test.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 64 void readOneRequest(InputStream is) throws IOException { argument 66 while ((r = is.read()) != -1) {
|
/openjdk7/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/SSLSocketImpl/ |
H A D | NonAutoClose.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 32 * @summary When a layered SSL socket is closed, it should wait for close_notify 86 * If the client or server is doing some kind of object creation 133 InputStream is = plainSocket.getInputStream(); 136 expectValue(is.read(), PLAIN_CLIENT_VAL, "Server"); 164 System.out.println("TLS socket is closed"); 168 expectValue(is.read(), PLAIN_CLIENT_VAL, "Server"); 173 is [all...] |
/openjdk7/jdk/test/sun/security/x509/AVA/ |
H A D | DomainComponentEncoding.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 49 // name is a sequence of RDN's 56 // each RDN is a set of AttributeTypeAndValue 57 DerInputStream is = new DerInputStream(nameseq[i].toByteArray()); 58 DerValue[] ava = is.getSet(3);
|
H A D | EmailAddressEncoding.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 43 // name is a sequence of RDN's 50 // each RDN is a set of AttributeTypeAndValue 51 DerInputStream is = new DerInputStream(nameseq[i].toByteArray()); 52 DerValue[] ava = is.getSet(3);
|
/openjdk7/jdk/src/share/classes/sun/security/util/ |
H A D | UntrustedCertificates.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 36 * A utility class to check if a certificate is untrusted. This is an internal 38 * case that a certificate is known to be used for malicious reasons. 40 * <b>Attention</b>: This check is NOT meant to replace the standard PKI-defined 41 * validation check, neither is it used as an alternative to CRL. 48 * Checks if a certificate is untrusted. 51 * @return true if the certificate is untruste [all...] |
/openjdk7/jdk/test/java/util/jar/JarEntry/ |
H A D | GetMethodsReturnClones.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 50 try (InputStream is = jf.getInputStream(je)) { 51 while (is.read(buffer, 0, buffer.length) != -1) {
|
/openjdk7/jdk/test/java/util/zip/ |
H A D | InterruptibleZip.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 26 * @summary Test whether the zip file still can be read after thread is interrupted 51 /* Interrupt the current thread. The is.read call below 59 InputStream is = zf.getInputStream(ze); 61 int n = is.read(buf);
|
H A D | ZipCoding.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 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/management/mxbean/ |
H A D | MXBeanAnnotationTest.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 87 boolean is = (mxbean != null && mxbean.equals("true")); 88 if (is == expected)
|
/openjdk7/jdk/test/javax/sound/midi/Gervill/ModelByteBuffer/RandomFileInputStream/ |
H A D | Close.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 86 InputStream is = buff.getInputStream(); 92 is.close();
|
/openjdk7/jdk/test/sun/net/www/http/HttpClient/ |
H A D | RequestURI.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 66 throw new RuntimeException("Failed: Fragment is being passed as part of the RequestURI"); 90 InputStream is = sock.getInputStream(); 93 MessageHeader headers = new MessageHeader (is);
|
H A D | StreamingRetry.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 65 InputStream is = uc.getInputStream(); 66 is.close();
|
/openjdk7/jdk/test/sun/net/www/protocol/http/ |
H A D | CloseOptionHeader.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 * @summary HTTP client should set "Connection: close" header in request when keepalive is disabled 49 InputStream is = s.getInputStream (); 50 MessageHeader mh = new MessageHeader(is); 86 * there is a close connection option header in it
|
H A D | HttpInputStream.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 85 InputStream is = con.getInputStream(); 87 while ((i = is.read()) != -1) {
|
H A D | RelativeRedirect.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 97 InputStream is = urlc.getInputStream (); 98 is.close();
|
/openjdk7/jdk/test/sun/security/pkcs11/SecureRandom/ |
H A D | TestDeserialization.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 27 * @summary Ensure a deserialized PKCS#11 SecureRandom is functional. 82 ByteArrayInputStream is = new ByteArrayInputStream(buf); 85 ois = new ObjectInputStream(is);
|
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/ior/ |
H A D | ObjectReferenceTemplateImpl.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 /** This is an implementation of the ObjectReferenceTemplate abstract value 56 * Note that this is a direct Java implementation 57 * of the abstract value type: there is no stateful value type defined in IDL, 58 * since defining the state in IDL is awkward and inefficient. The best way 59 * to define the state is to use internal data structures that can be written 67 public ObjectReferenceTemplateImpl( InputStream is ) 69 super( (ORB)(is [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/rngom/parse/compact/ |
H A D | CompactParseable.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 28 * Permission is hereby granted, free of charge, to any person obtaining a copy 32 * copies of the Software, and to permit persons to whom the Software is 100 private static Reader makeReader(InputSource is) throws BuildException { argument 102 Reader r = is.getCharacterStream(); 104 InputStream in = is.getByteStream(); 106 String systemId = is.getSystemId(); 109 String encoding = is [all...] |
/openjdk7/jdk/test/java/lang/Runtime/exec/ |
H A D | WinCommand.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 35 private final InputStream is; field in class:StreamDrainer 37 public StreamDrainer(InputStream is) { this.is = is; } argument 41 while ((i = is.read()) >= 0)
|
/openjdk7/jdk/test/sun/security/ssl/sun/net/www/httpstest/ |
H A D | HttpServer.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 37 * each request. (this is easier to implement with SSLEngine) 67 * for handling requests. One thread is created to handle requests, 69 * @param cb the callback object which is invoked to handle each 80 * the same as the 4 arg constructor, where the port argument is set to zero. 81 * @param cb the callback object which is invoked to handle each 98 * handle incoming requests, and each thread is allowed 100 * @param cb the callback object which is invoke 471 readNormalData(InputStream is, int len) argument 481 readCRLF(InputStream is) argument 492 readChunkedData(InputStream is) argument 512 readChunkLen(InputStream is) argument 538 readLine(InputStream is) argument [all...] |
/openjdk7/jdk/test/sun/net/www/http/KeepAliveCache/ |
H A D | B5045306.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 30 * @summary Http keep-alive implementation is not efficient 42 * server. If the connection port used by the client is the same as for the 43 * first call then that means that the connection is being reused. 81 InputStream is = uc.getInputStream(); 83 is.read(ba); 84 is.close(); 93 throw new RuntimeException("Failed: Initial Keep Alive Connection is no [all...] |
/openjdk7/jdk/test/sun/net/www/httptest/ |
H A D | HttpServer.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 61 * for handling requests. One thread is created to handle requests, 63 * @param cb the callback object which is invoked to handle each 74 * the same as the 4 arg constructor, where the port argument is set to zero. 75 * @param cb the callback object which is invoked to handle each 92 * handle incoming requests, and each thread is allowed 94 * @param cb the callback object which is invoked to handle 120 * This is a 286 readNormalData(InputStream is, int len) argument 296 readCRLF(InputStream is) argument 307 readChunkedData(InputStream is) argument 327 readChunkLen(InputStream is) argument 353 readLine(InputStream is) argument [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/serializer/ |
H A D | Encodings.java | 15 * distributed under the License is distributed on an "AS IS" BASIS, 83 * @throws UnsupportedEncodingException There is no convertor 121 * This is not a public API. 124 * @return The object that is used to determine if 157 * A fast and cheap way to uppercase a String that is 160 * This is not a public API. 173 // is the character a lower case ASCII one? 175 // a cheap and fast way to uppercase that is good enough 177 different = true; // the uppercased String is different 183 // the uppercased string is th [all...] |
/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | StandardMidiFileReader.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 104 // tempo based timing. value is ticks per beat. 205 InputStream is = url.openStream(); // throws IOException 206 is = new BufferedInputStream(is, bisBufferSize); 209 seq = getSequence(is); 211 is.close(); 218 InputStream is [all...] |
/openjdk7/jdk/src/share/classes/sun/security/jgss/krb5/ |
H A D | MessageToken_v2.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 * This class is a base class for new GSS token definitions, as defined 85 * This class is the super class of WrapToken_v2 and MicToken_v2. The token's 87 * tokenData fields. Since there is no easy way to find out the exact length 92 * super class only write the tokenHeader, and the content writing is inside 153 * it is read. 160 * @throws GSSException if there is a problem parsing the token 173 * complete the token. Please note there is n 186 MessageToken_v2(int tokenId, Krb5Context context, InputStream is, MessageProp prop) argument 552 MessageTokenHeader(InputStream is, MessageProp prop, int tokId) argument [all...] |