/openjdk7/jdk/src/share/classes/sun/tools/jar/ |
H A D | SignatureFile.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 42 * essentially the same structure as a Manifest file in that it is a 52 * is equivalent to a signature of the data, plus the attributes of 84 * The file name for the file. This is the raw name, i.e. the 113 * and a new file predicate. If it is a new file, a main header 137 * @exception JarException if an invalid name is passed in. 167 * @exception JarException if an invalid name is passed in. 180 * @exception IOException if an invalid name is passe 183 SignatureFile(InputStream is, String filename) argument 198 SignatureFile(InputStream is) argument [all...] |
/openjdk7/jdk/test/java/util/logging/ |
H A D | LoggingDeadlock2.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 33 * There is a clear deadlock between LogManager.<clinit> and 40 * It is started by the System.exit() as shutdown hook thread. 43 * case it is a trick of the inner classes implementation). 44 * It is waits when the LogManager.<clinit> is completed. 46 * This is a regression test for this bug. 118 // The rest of this test is copie 165 private final InputStream is; field in class:LoggingDeadlock2.StreamAccumulator 175 StreamAccumulator(InputStream is) argument [all...] |
/openjdk7/jdk/test/java/util/zip/ |
H A D | LargeZip.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 51 /* args can be empty, in which case check a 3 GB file which is created for 55 * which case it is *not* deleted. Note that in this last case, the data 120 System.out.println("Last entry written is " + lastEntryName); 126 static void checkEntry(ZipEntry e, InputStream is) throws Throwable { argument 129 while ((n = is.read(buf)) >= 0) { 157 InputStream is = zipFile.getInputStream(entry); 159 while ((len = is [all...] |
/openjdk7/jdk/test/sun/net/www/http/ChunkedOutputStream/ |
H A D | Test.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 139 InputStream is = exchange.getRequestBody(); 140 String s = read (is, str1.length()); 144 byte c = (byte)is.read(); 163 is = exchange.getRequestBody(); 164 s = read (is, str1.length()); 168 byte c = (byte)is.read(); 187 is 219 read(InputStream is, int len) argument 234 read(InputStream is) argument 257 readAndCompare(InputStream is, String cmp) argument [all...] |
/openjdk7/jdk/test/sun/net/www/httptest/ |
H A D | HttpTransaction.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 62 * Get the value of a request header whose name is specified by the 73 * Get the value of a response header whose name is specified by the 111 * Get the value of a request trailer whose name is specified by 173 * connection is completely closed. 217 * The content length is set to the length of the string 228 * The content length is set to the gven length 242 * @param is th 244 setResponseEntityBody(InputStream is) argument [all...] |
/openjdk7/jdk/test/sun/net/www/protocol/http/ |
H A D | B6299712.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 42 * - a global ResponseCache instance is installed, which return DeployCacheResponse 45 * - the whole result is that the first call will be served by our simple 46 * http server and is redirected to "/redirect". The successive call will be done 48 * The NPE will be thrown on the second round if the bug is there. 155 protected InputStream is; field in class:DeployCacheResponse 158 DeployCacheResponse(InputStream is, Map headers) { argument 159 this.is [all...] |
H A D | DigestTest.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 /* This is one simple test of the RFC2617 digest authentication behavior 40 * if the password is wrong 47 InputStream is; field in class:DigestServer 76 is = s1.getInputStream (); 78 is.read (); 84 is = s1.getInputStream (); 86 is [all...] |
/openjdk7/jdk/src/share/classes/sun/misc/ |
H A D | JarIndex.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 34 * This class is used to maintain mappings from packages, classes 70 * true if, and only if, sun.misc.JarIndex.metaInfFilenames is set to true. 88 * @param is the input stream containing the index data 90 public JarIndex(InputStream is) throws IOException { argument 92 read(is); 109 * This single parameter version of the method is retained 127 /* If metaIndex is no 305 read(InputStream is) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/net/www/http/ |
H A D | KeepAliveStream.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 56 public KeepAliveStream(InputStream is, ProgressSource pi, long expected, HttpClient hc) { argument 57 super(is, pi, expected); 65 // If the inputstream is closed already, just return.
|
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/file/ |
H A D | FileURLConnection.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 56 InputStream is; field in class:FileURLConnection 73 * Note: the semantics of FileURLConnection object is that the 86 throw new FileNotFoundException(filename + " exists, but is not accessible"); 90 is = new BufferedInputStream(new FileInputStream(filename)); 96 is = new MeteredStream(is, pi, file.length()); 190 if (is [all...] |
/openjdk7/jdk/src/share/classes/sun/nio/cs/ |
H A D | Surrogate.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 55 * Tells whether or not the given value is in the high surrogate range. 56 * Use of {@link Character#isHighSurrogate} is generally preferred. 63 * Tells whether or not the given value is in the low surrogate range. 64 * Use of {@link Character#isLowSurrogate} is generally preferred. 71 * Tells whether or not the given value is in the surrogate range. 72 * Use of {@link Character#isSurrogate} is generally preferred. 74 public static boolean is(in method in class:Surrogate [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/trax/ |
H A D | TemplatesImpl.java | 15 * distributed under the License is distributed on an "AS IS" BASIS, 60 * Name of the superclass of all translets. This is needed to 62 * is the main one. 80 * this Templates is created or when it is read back from disk. 106 * This URIResolver is passed to all Transformers. 113 * which is used by the document('') function. 196 private void readObject(ObjectInputStream is) argument 208 is.defaultReadObject(); 209 if (is [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/jaxp/ |
H A D | DocumentBuilderImpl.java | 15 * distributed under the License is distributed on an "AS IS" BASIS, 156 // Avoid setting the XInclude processing feature if the value is false. 163 // If the secure processing feature is on set a security manager. 168 * By default, secure processing is set, no external access is allowed. 169 * However, we need to check if it is actively set on the factory since we 275 // spec when schema validation is enabled 312 public Document parse(InputSource is) throws SAXException, IOException { argument 313 if (is == null) { 325 domParser.parse(is); [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/parsers/ |
H A D | XMLGrammarPreparser.java | 15 * distributed under the License is distributed on an "AS IS" BASIS, 144 * the second parameter is null, the parser will use its built-in 179 * @param is The XMLInputSource containing this grammar's 181 * <strong>If a URI is included in the systemId field, the parser will not expand this URI or make it 186 * @exception IOException thrown if an error is encountered 190 is) throws XNIException, IOException { 205 return gl.loadGrammar(is); 223 /** Return the Locale the XMLGrammarLoader is using. */ 279 // an app needs to know if a particular feature is supported 292 // since our error reporter is 189 preparseGrammar(String type, XMLInputSource is) argument [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/resolver/readers/ |
H A D | SAXCatalogReader.java | 18 * distributed under the License is distributed on an "AS IS" BASIS, 58 * <p>This class is used to read XML Catalogs using the SAX. This reader 69 * <p>The selection of CatalogParsers is made on the basis of the QName 93 * or "{namespaceuri}elementname". The former is used if the 94 * namespace URI is null.</p> 133 * This is a bit of a hack. Anyway, whenever we read for a catalog, 219 * @param is The input stream from which the catalog will be read 225 public void readCatalog(Catalog catalog, InputStream is) argument 247 parser.parse(new InputSource(is), spHandler); 254 parser.parse(new InputSource(is)); [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/serializer/ |
H A D | ElemDesc.java | 15 * distributed under the License is distributed on an "AS IS" BASIS, 30 * This class is public because XSLTC uses it, it is not a public API. 45 /** Bit position if this element type is empty. */ 48 /** Bit position if this element type is a flow. */ 51 /** Bit position if this element type is a block. */ 54 /** Bit position if this element type is a block form. */ 57 /** Bit position if this element type is a block form field set. */ 60 /** Bit position if this element type is CDATA. */ 63 /** Bit position if this element type is PCDAT 139 private boolean is(int flags) method in class:ElemDesc [all...] |
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/corba/ |
H A D | RequestImpl.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 275 // release the lock. wait to be notified by the thread that is 288 * The doInvocation operation is where the real mechanics of 289 * performing the request invocation is done. 297 // this is a DII request so that it knows to ignore the second 328 // This is already handled in subcontract. 345 public void unmarshalReply(InputStream is) argument 347 // First unmarshal the return value if it is no [all...] |
/openjdk7/jdk/src/share/classes/sun/awt/image/ |
H A D | InputStreamImageSource.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 90 // This consumer is already being fed. 115 // image data is small fish compared to what they could be 189 protected ImageDecoder decoderForType(InputStream is, argument 195 return new GifImageDecoder(this, is); 197 return new JPEGImageDecoder(this, is); 199 return new XbmImageDecoder(this, is); 202 return new JpegImageDecoder(this, is); 213 getDecoder(InputStream is) argument [all...] |
H A D | ToolkitImage.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 * The object which is used to reconstruct the original image data 66 public ToolkitImage(ImageProducer is) { argument 67 source = is; 68 if (is instanceof InputStreamImageSource) { 69 src = (InputStreamImageSource) is; 88 * If the width isn't known, then the image is reconstructed. 103 * notified when the data is availabl [all...] |
/openjdk7/jdk/src/share/classes/java/io/ |
H A D | StreamTokenizer.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 33 * read one at a time. The parsing process is controlled by a table 38 * Each byte read from the input stream is regarded as a character 40 * The character value is used to look up five possible attributes of 76 * to indicate that a new character should be read and, if it is a '\n' 104 * token, its value is the single character, converted to an integer. 105 * For a quoted string token, its value is the quote character. 106 * Otherwise, its value is on 231 StreamTokenizer(InputStream is) argument [all...] |
/openjdk7/jdk/src/share/classes/java/util/jar/ |
H A D | Attributes.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 103 * name is case-insensitive. 105 * This method is defined as: 113 * @throws IllegalArgumentException if the attribute name is invalid 123 * This method is defined as: 139 * the attribute name, the old value is replaced. 144 * @exception ClassCastException if the name is not a Attributes.Name 145 * or the value is no 371 read(Manifest.FastInputStream is, byte[] lbuf) argument [all...] |
H A D | Manifest.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 * The Manifest class is used to maintain Manifest entry names and their 65 * @param is the input stream containing manifest data 68 public Manifest(InputStream is) throws IOException { argument 69 read(is); 73 * Constructs a new Manifest that is a copy of the specified Manifest. 92 * is represented by a String name (key) and associated Attributes (value). 93 * The Map permits the {@code null} key, but no entry with a null key is 193 read(InputStream is) argument [all...] |
/openjdk7/jdk/src/share/classes/java/util/prefs/ |
H A D | Preferences.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 48 * preference and configuration data. This data is stored 66 * tree has a <i>node name</i> (which is not necessarily unique), 71 * node has an arbitrary node name, specified at the time it is created. The 82 * is simply the string that must be appended to <i>a</i>'s absolute path name 87 * <li>Every node's path name relative to itself is the empty string. 88 * <li>Every node's path name relative to its parent is its node name (except 90 * <li>Every node's path name relative to the root is it 1256 importPreferences(InputStream is) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/utils/ |
H A D | Base64.java | 15 * distributed under the License is distributed on an "AS IS" BASIS, 59 * No sign-bit is outputed. 116 * No sign-bit is outputed. 272 * ignore line breaks property is set. 486 * @throws Base64DecodingException if there is a problem decoding the data 560 throw new Base64DecodingException("decoding.general");//an error like "3c[Pad]r", "3cdX", "3cXd", "3cXX" where X is non data 683 throw new Base64DecodingException("decoding.general");//an error like "3c[Pad]r", "3cdX", "3cXd", "3cXX" where X is non data 697 * @param is containing Base64 data 702 public final static void decode(InputStream is, argument 711 while ((read=is [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/codemodel/internal/util/ |
H A D | Surrogate.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 58 * Tells whether or not the given UTF-16 value is a high surrogate. 65 * Tells whether or not the given UTF-16 value is a low surrogate. 72 * Tells whether or not the given UTF-16 value is a surrogate character, 74 public static boolean is(int c) { method in class:Surrogate 164 * will be consumed if c is a high surrogate 203 * will be consumed if c is a high surrogate 275 if (is(u [all...] |