- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for newChannel (0.06 seconds)
-
guava-tests/test/com/google/common/io/ByteStreamsTest.java
byte[] expected = newPreFilledByteArray(100); ByteArrayOutputStream out = new ByteArrayOutputStream(); WritableByteChannel outChannel = Channels.newChannel(out); ReadableByteChannel inChannel = Channels.newChannel(new ByteArrayInputStream(expected)); ByteStreams.copy(inChannel, outChannel); assertThat(out.toByteArray()).isEqualTo(expected); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 22K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ByteStreamsTest.java
byte[] expected = newPreFilledByteArray(100); ByteArrayOutputStream out = new ByteArrayOutputStream(); WritableByteChannel outChannel = Channels.newChannel(out); ReadableByteChannel inChannel = Channels.newChannel(new ByteArrayInputStream(expected)); ByteStreams.copy(inChannel, outChannel); assertThat(out.toByteArray()).isEqualTo(expected); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 22K bytes - Click Count (0) -
.teamcity/.mvn/wrapper/MavenWrapperDownloader.java
} }); } URL website = new URL(urlString); ReadableByteChannel rbc; rbc = Channels.newChannel(website.openStream()); FileOutputStream fos = new FileOutputStream(destination); fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); fos.close(); rbc.close(); }Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Feb 26 01:48:39 GMT 2020 - 4.8K bytes - Click Count (0)