- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 104 for ByteArrayInputStream (0.83 sec)
-
src/test/java/org/codelibs/fess/util/InputStreamThreadTest.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.util; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.concurrent.CountDownLatch;
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoExceptionTest.java
oout.writeObject(original); oout.flush(); bytes = bout.toByteArray(); } SpnegoException restored; try (ByteArrayInputStream bin = new ByteArrayInputStream(bytes); ObjectInputStream oin = new ObjectInputStream(bin)) { restored = (SpnegoException) oin.readObject(); } // Then assertNotNull(restored);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/XmlExtractorTest.java
* governing permissions and limitations under the License. */ package org.codelibs.fess.crawler.extractor.impl; import java.io.BufferedInputStream; import java.io.ByteArrayInputStream; import java.io.InputStream; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.codelibs.core.io.CloseableUtil; import org.codelibs.core.io.ResourceUtil;
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Mar 15 06:52:00 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/SsoLoginExceptionTest.java
ObjectOutputStream oos = new ObjectOutputStream(baos); oos.writeObject(originalException); oos.close(); // Deserialize the exception ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); ObjectInputStream ois = new ObjectInputStream(bais); SsoLoginException deserializedException = (SsoLoginException) ois.readObject(); ois.close();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.7K bytes - Viewed (0) -
compat/maven-builder-support/src/main/java/org/apache/maven/building/StringSource.java
* KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.maven.building; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.nio.charset.StandardCharsets; /** * Wraps an ordinary {@link CharSequence} as a source. *
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jan 15 18:51:29 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/netdfsTest.java
byte[] encodeBuffer = new byte[1024]; NdrBuffer dst = new NdrBuffer(encodeBuffer, 0); info1.encode(dst); ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); // Use the encoded buffer for decoding NdrBuffer src = new NdrBuffer(encodeBuffer, 0); netdfs.DfsInfo1 decodedInfo1 = new netdfs.DfsInfo1();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.9K bytes - Viewed (0) -
src/test/java/jcifs/pac/ASN1UtilTest.java
// Test successful reading and casting from ASN1InputStream ASN1Integer original = new ASN1Integer(456); ByteArrayInputStream bais = new ByteArrayInputStream(original.getEncoded()); ASN1InputStream ais = new ASN1InputStream(bais); ASN1Integer result = ASN1Util.as(ASN1Integer.class, ais); assertEquals(original, result); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
byte[] buffer = new byte[256]; int written = writePacket.writeTrailerWireFormat(buffer, 0); ByteArrayInputStream bais = new ByteArrayInputStream(buffer, 0, written); SessionRequestPacket readPacket = new SessionRequestPacket(mockConfig); readPacket.length = written;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
@DisplayName("readn should read complete data when available") void testReadnComplete() throws IOException { byte[] buffer = new byte[10]; byte[] data = { 1, 2, 3, 4, 5 }; ByteArrayInputStream bais = new ByteArrayInputStream(data); int bytesRead = SessionServicePacket.readn(bais, buffer, 0, 5); assertEquals(5, bytesRead); for (int i = 0; i < 5; i++) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java
DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data)); byte[] b = new byte[data.length]; in.readFully(b); assertEquals(Bytes.asList(data), Bytes.asList(b)); } public void testReadUnsignedByte_eof() throws IOException { DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(new byte[0])); assertThrows(EOFException.class, () -> in.readUnsignedByte());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.9K bytes - Viewed (0)