- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 85 for ByteArrayOutputStream (0.09 sec)
-
src/main/java/jcifs/smb/SpnegoContext.java
* @return * @throws CIFSException */ private static byte[] encodeMechs(final ASN1ObjectIdentifier[] mechs) throws CIFSException { try { final ByteArrayOutputStream bos = new ByteArrayOutputStream(); final ASN1OutputStream dos = ASN1OutputStream.create(bos, ASN1Encoding.DER); dos.writeObject(new DERSequence(mechs)); dos.close();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
new RuntimeException("cause"), SmbOperationException.RetryPolicy.AGGRESSIVE, context); // When - Serialize java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); java.io.ObjectOutputStream oos = new java.io.ObjectOutputStream(baos); oos.writeObject(exception); oos.close(); // And deserialize
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.1K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ByteSink.java
* delegate to {@link #openStream()} when the stream returned by that method does not benefit from * additional buffering (for example, a {@code ByteArrayOutputStream}). This method returns a new, * independent stream each time it is called. * * <p>The caller is responsible for ensuring that the returned stream is closed. *Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 4.9K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteSink.java
* delegate to {@link #openStream()} when the stream returned by that method does not benefit from * additional buffering (for example, a {@code ByteArrayOutputStream}). This method returns a new, * independent stream each time it is called. * * <p>The caller is responsible for ensuring that the returned stream is closed. *Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 4.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/SearchHelper.java
* @return GZIP-compressed data * @throws IORuntimeException if compression fails */ protected byte[] gzipCompress(final byte[] data) { try (final ByteArrayOutputStream bos = new ByteArrayOutputStream()) { try (final GZIPOutputStream gzipOut = new GZIPOutputStream(bos)) { gzipOut.write(data); } return bos.toByteArray();Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sat Dec 20 05:56:45 UTC 2025 - 36.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/SourceSinkFactories.java
} } @Override public byte[] getSinkContents() throws IOException { File file = getFile(); InputStream in = new FileInputStream(file); ByteArrayOutputStream out = new ByteArrayOutputStream(); byte[] buffer = new byte[100]; int read; while ((read = in.read(buffer)) != -1) { out.write(buffer, 0, read); } return out.toByteArray(); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 17.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java
Exception cause = new IOException("IO cause"); CrawlerSystemException original = new CrawlerSystemException(message, cause); // Serialize ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(baos); oos.writeObject(original); oos.close(); // Deserialize
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 20K bytes - Viewed (0) -
src/test/java/jcifs/http/NetworkExplorerTest.java
private PrintWriter printWriter; private ByteArrayOutputStream outputStream; private ServletOutputStream servletOutputStream; @BeforeEach void setUp() throws Exception { // Setup response writers stringWriter = new StringWriter(); printWriter = new PrintWriter(stringWriter); outputStream = new ByteArrayOutputStream(); servletOutputStream = new ServletOutputStream() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 21.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/DocumentHelper.java
*/ public String encodeSimilarDocHash(final String hash) { if (hash != null && !hash.startsWith(SIMILAR_DOC_HASH_PREFIX)) { try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) { try (GZIPOutputStream gos = new GZIPOutputStream(baos)) { gos.write(hash.getBytes(Constants.UTF_8)); }Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 17.4K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/AbstractRuleTest.java
testRule.setRuleId("serializeRule"); testRule.setResponseProcessor(processor); testRule.setMatchResult(false); // Serialize ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(baos); oos.writeObject(testRule); oos.close(); // Deserialize
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 21.9K bytes - Viewed (0)