/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/runner/ |
ParserLoader.java | 6 Redistribution and use in source and binary forms, with or without 11 2. Redistributions in binary form must reproduce the above copyright 12 notice, this list of conditions and the following disclaimer in the 20 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 51 // load all the class files in the "classDir" related to the grammarName 60 final InputStream in = new BufferedInputStream(new FileInputStream(f)); local 61 final byte[] classData = new byte[in.available()]; 62 in.read(classData) [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/ |
SequenceOfTest.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 83 DerInputStream in = new DerInputStream((byte[]) testcases[i][1]); local 85 .decode(in)); 108 public Object getDecodedObject(BerInputStream in) 116 DerInputStream in = new DerInputStream((byte[]) testcases[i][1]); local 117 in.setVerify(); 118 seqVerify.decode(in);
|
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_GetLocal.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 42 InputStream in = Support_GetLocal.class.getResourceAsStream(url); local 48 while ((result = in.read(buf)) != -1) { 51 in.close(); 62 InputStream in = new URL(url).openStream(); local 68 while ((result = in.read(buf)) != -1) { 71 in.close(); 80 InputStream in = new URL(url).openStream(); local 84 while ((result = in.read(buf)) != -1) [all...] |
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
CertificateRequestTest.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 80 HandshakeIODataStream in = new HandshakeIODataStream(); local 81 in.append(encoded); 82 CertificateRequest message_2 = new CertificateRequest(in, message.length()); 88 in.append(encoded); 90 message_2 = new CertificateRequest(in, message.length() - 1); 95 in.append(encoded); 96 in.append(new byte[] { 1, 2, 3 }); 98 message_2 = new CertificateRequest(in, message.length() + 3) [all...] |
ServerKeyExchangeTest.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 55 HandshakeIODataStream in = new HandshakeIODataStream(); local 56 in.append(encoded); 57 ServerKeyExchange message_2 = new ServerKeyExchange(in, message 68 in.append(encoded); 70 new ServerKeyExchange(in, message.length() - 1, 76 in.append(encoded); 77 in.append(new byte[] { 1, 2, 3 }); 79 new ServerKeyExchange(in, message.length() + 3 109 HandshakeIODataStream in = new HandshakeIODataStream(); local 158 HandshakeIODataStream in = new HandshakeIODataStream(); local [all...] |
/external/doclava/src/com/google/doclava/ |
JarUtils.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 69 InputStream in = fromJar.getInputStream(entry); local 75 while ((s = in.read(buffer)) > 0) { 82 in.close();
|
/external/emma/core/java12/com/vladium/emma/rt/ |
RTExitHook.java | 43 InputStream in = null; local 50 in = RTExitHook.class.getResourceAsStream (CLOSURE_RESOURCE); 51 if (in != null) 54 closureMap.load (in); 69 if (in != null) try { in.close (); } catch (IOException ignore) { ignore.printStackTrace (); } 71 in = null; 120 private Class m_RT; // keep our RT class pinned in memory
|
/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/ |
StrictLineReader.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 36 * cache entries or cache journal. Unlike the {@link java.io.BufferedReader} which in conjunction 42 * We currently check in constructor that the charset is one of US-ASCII, UTF-8 and ISO-8859-1. 49 private final InputStream in; field in class:StrictLineReader 53 * Buffered data is stored in {@code buf}. As long as no exception occurs, 0 <= pos <= end 54 * and the data in the range [pos, end) is buffered for reading. At end of input, if there is 65 * @param in the {@code InputStream} to read data from. 68 * @throws NullPointerException if {@code in} or {@code charset} is null. 71 public StrictLineReader(InputStream in, Charset charset) [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
MultiInputStreamTest.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 84 InputStream in = joined.openStream(); local 85 assertFalse(in.markSupported()); 86 assertEquals(10, in.available()); 88 while (in.read() != -1) { 91 assertEquals(0, in.available());
|
/external/jarjar/src/main/com/tonicsystems/jarjar/ |
DepFind.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 42 InputStream in = entry.openStream(); local 44 header.read(in); 49 in.close(); 61 InputStream in = entry.openStream(); local 63 new ClassReader(in).accept( 69 in.close();
|
StringDumper.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 34 InputStream in = entry.openStream(); local 36 new ClassReader(in).accept(stringReader, 0); 40 in.close();
|
/external/jmonkeyengine/engine/src/xml/com/jme3/export/xml/ |
XMLImporter.java | 5 * Redistribution and use in source and binary forms, with or without 12 * * Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 49 * Part of the jME XML IO system as introduced in the google code jmexml project. 76 InputStream in = info.openStream(); local 77 Savable obj = load(in); 78 in.close() [all...] |
/external/vogar/src/vogar/ |
Md5Cache.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 58 FileInputStream in = new FileInputStream(file); local 61 while ((byteCount = in.read(bytes)) > 0) { 66 in.close(); 88 // Do we have it in cache?
|
/external/vogar/src/vogar/util/ |
Strings.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 44 BufferedReader in = new BufferedReader(reader); local 46 while ((line = in.readLine()) != null) { 50 in.close(); 59 BufferedReader in = local 63 while ((line = in.readLine()) != null) { 66 in.close();
|
/libcore/benchmarks/src/benchmarks/ |
BufferedZipFileBenchmark.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 58 InputStream in = zipFile.getInputStream(entry); local 60 while (in.read(buffer) != -1) { 62 in.close(); 71 InputStream in = new BufferedInputStream(zipFile.getInputStream(entry)); local 73 while (in.read(buffer) != -1) { 75 in.close();
|
/libcore/luni/src/main/java/libcore/io/ |
StrictLineReader.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 36 * cache entries or cache journal. Unlike the {@link BufferedReader} which in conjunction with 42 * We currently check in constructor that the charset is one of US-ASCII, UTF-8 and ISO-8859-1. 49 private final InputStream in; field in class:StrictLineReader 53 * Buffered data is stored in {@code buf}. As long as no exception occurs, 0 <= pos <= end 54 * and the data in the range [pos, end) is buffered for reading. At end of input, if there is 65 * @param in the {@code InputStream} to read data from. 66 * @throws NullPointerException if {@code in} is null. 68 public StrictLineReader(InputStream in) { [all...] |
/libcore/luni/src/test/java/libcore/java/util/zip/ |
OldAndroidGZIPStreamTest.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 95 GZIPInputStream in = new GZIPInputStream(bytesIn); local 101 while ((len = in.read(buf)) > 0) { 108 in.close();
|
/libcore/luni/src/test/java/tests/support/ |
Support_SQL.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 51 InputStream in = Class.forName("tests.support.Support_SQL") local 53 loadProperties(in); 54 in.close();
|
/libcore/support/src/test/java/tests/support/ |
Support_GetLocal.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 42 InputStream in = Support_GetLocal.class.getResourceAsStream(url); local 48 while ((result = in.read(buf)) != -1) { 51 in.close(); 62 InputStream in = new URL(url).openStream(); local 68 while ((result = in.read(buf)) != -1) { 71 in.close(); 80 InputStream in = new URL(url).openStream(); local 84 while ((result = in.read(buf)) != -1) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
AbstractHtmlTemplates.java | 6 * you may not use this file except in compliance with the License. 11 * Unless required by applicable law or agreed to in writing, software 67 InputStreamReader in = null; local 70 in = new InputStreamReader( 75 while ((chars=in.read(buf)) > 0) { 82 if (in != null) { 83 in.close();
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/ |
EOLConvertingInputStream.java | 7 * "License"); you may not use this file except in compliance * 12 * Unless required by applicable law or agreed to in writing, * 42 private PushbackInputStream in = null; field in class:EOLConvertingInputStream 57 * instance converting bytes in the given <code>InputStream</code>. 60 * @param in the <code>InputStream</code> to read from. 64 in = new PushbackInputStream(_in, 2); 69 * instance converting bytes in the given <code>InputStream</code>. 89 in.close(); 93 int b = in.read(); 106 in.unread(c) [all...] |
/packages/services/Telephony/src/org/apache/james/mime4j/ |
EOLConvertingInputStream.java | 7 * "License"); you may not use this file except in compliance * 12 * Unless required by applicable law or agreed to in writing, * 42 private PushbackInputStream in = null; field in class:EOLConvertingInputStream 57 * instance converting bytes in the given <code>InputStream</code>. 60 * @param in the <code>InputStream</code> to read from. 64 in = new PushbackInputStream(_in, 2); 69 * instance converting bytes in the given <code>InputStream</code>. 89 in.close(); 93 int b = in.read(); 106 in.unread(c) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/templates/ |
SimpleFile.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 104 TemplatedInputStream in = new TemplatedInputStream(sourceURL.openStream(), local 106 destFile.create(in, true, monitor); 107 in.close();
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
ProfilesLoader.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 39 BufferedReader in = null; local 48 in = new BufferedReader(new InputStreamReader(socket.getInputStream())); 54 String response = in.readLine(); 69 if (in != null) { 70 in.close();
|
VersionLoader.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 42 BufferedReader in = null; local 51 in = new BufferedReader(new InputStreamReader(socket.getInputStream())); 57 return Integer.parseInt(in.readLine()); 65 if (in != null) { 66 in.close();
|