/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/ |
CloseablesTest.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 71 TestInputStream in = new TestInputStream( local 73 Closeables.closeQuietly(in); 74 assertTrue(in.closed()); 78 TestReader in = new TestReader(TestOption.CLOSE_THROWS); local 79 Closeables.closeQuietly(in); 80 assertTrue(in.closed()); 101 expectLastCall().andThrow(new IOException("This should only appear in the " 120 // Close the closeable using the Closeables, passing in the swallowExceptio [all...] |
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/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/ |
ClassFileDumperTest.java | 67 InputStream in = new FileInputStream(new File(location, filename)); local 70 while ((b = in.read()) != -1) { 73 in.close();
|
/external/jacoco/org.jacoco.agent.test/src/org/jacoco/agent/ |
AgentJarTest.java | 44 final InputStream in = AgentJar.getResource().openStream(); local 45 assertAgentContents(in); 50 final InputStream in = AgentJar.getResourceAsStream(); local 51 assertAgentContents(in); 76 private void assertAgentContents(InputStream in) throws IOException { 77 final ZipInputStream zip = new ZipInputStream(in); 85 in.close();
|
/external/jacoco/org.jacoco.cli/src/org/jacoco/cli/internal/commands/ |
ExecInfo.java | 40 return "Print exec file content in human readable format."; 57 final FileInputStream in = new FileInputStream(file); local 58 final ExecutionDataReader reader = new ExecutionDataReader(in); 76 in.close();
|
/external/jacoco/org.jacoco.cli.test/src/org/jacoco/cli/internal/ |
XmlDocumentationTest.java | 111 InputStream in = new FileInputStream(file); local 113 return builder.parse(new InputSource(in)); 115 in.close();
|
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/ |
ContentTypeDetector.java | 42 private final InputStream in; field in class:ContentTypeDetector 51 * @param in 56 public ContentTypeDetector(final InputStream in) throws IOException { 57 if (in.markSupported()) { 58 this.in = in; 60 this.in = new BufferedInputStream(in, BUFFER_SIZE); 62 this.in.mark(BUFFER_SIZE); 63 this.type = determineType(this.in); [all...] |
/external/jacoco/org.jacoco.examples/src/org/jacoco/examples/ |
ExecDump.java | 49 * in case of error reading a input file 61 final FileInputStream in = new FileInputStream(file); local 62 final ExecutionDataReader reader = new ExecutionDataReader(in); 80 in.close(); 100 * in case of errors executing the example
|
/external/jacoco/org.jacoco.report/src/org/jacoco/report/internal/html/resources/ |
Resources.java | 63 * name of the static resource, see constants in this class 125 final InputStream in = Resources.class.getResourceAsStream(name); local 129 while ((len = in.read(buffer)) != -1) { 132 in.close();
|
/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/jcommander/src/test/java/com/beust/jcommander/internal/ |
DefaultConsoleTest.java | 12 final InputStream inBackup = System.in; 14 final StringInputStream in = new StringInputStream(); local 15 System.setIn(in); 18 in.setData("password1\n"); 21 Assert.assertFalse(in.isClosedCalled(), "System.in stream shouldn't be closed"); 23 in.setData("password2\n"); 26 Assert.assertFalse(in.isClosedCalled(), "System.in stream shouldn't be closed");
|
/external/lzma/Java/Tukaani/src/org/tukaani/xz/ |
XZInputStream.java | 19 * Decompresses a .xz file in streamed mode (no seeking). 33 * It's important to keep in mind that decompressor memory usage depends 65 private InputStream in; field in class:XZInputStream 77 * from <code>in</code>. The header of the first Block is not read 80 * @param in input stream from which XZ-compressed 84 * input is not in the XZ format 95 * from <code>in</code> 97 * @throws IOException may be thrown by <code>in</code> 99 public XZInputStream(InputStream in) throws IOException { 100 this(in, -1) [all...] |