- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 327 for setBytes (0.34 sec)
-
android/guava/src/com/google/common/hash/AbstractStreamingHasher.java
* even to an intermediate buffer) should be considerably more efficient than potentially * copying the CharSequence to a String and then calling getBytes(Charset) on that String, in * reality there are optimizations that make the getBytes(Charset) approach considerably faster, * at least for commonly used charsets like UTF-8. */ @Override @CanIgnoreReturnValue
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 7.1K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/StringWagon.java
if (content != null) { resource.setContentLength(content.length()); resource.setLastModified(System.currentTimeMillis()); inputData.setInputStream(new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8))); } else { throw new ResourceDoesNotExistException("No content provided for " + resource.getName()); } } @OverrideRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/crypto/CachedCipher.java
* @param text * the text to encrypt * @return the encrypted text */ public String encryptText(final String text) { try { return Base64Util.encode(encrypt(text.getBytes(charsetName))); } catch (final UnsupportedEncodingException e) { throw new UnsupportedEncodingRuntimeException(e); } } /** * Encrypts the given text. *Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 15.9K bytes - Viewed (0) -
src/main/java/jcifs/pac/kerberos/KerberosApRequest.java
} break; case 2: DERBitString bitString = ASN1Util.as(DERBitString.class, tagged); this.apOptions = bitString.getBytes()[0]; break; case 3: ASN1TaggedObject derTicket = ASN1Util.as(ASN1TaggedObject.class, tagged); if (derTicket.getTagClass() != BERTags.APPLICATION) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/util/EncdecTest.java
// Given String testString = "Hello"; byte[] buffer = new byte[testString.length()]; // When - Manual string encoding using individual bytes byte[] strBytes = testString.getBytes(); System.arraycopy(strBytes, 0, buffer, 0, strBytes.length); // Then String decoded = new String(buffer); assertEquals(testString, decoded); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/FileRenameInformation2.java
dst[dstIndex] = (byte) (this.replaceIfExists ? 1 : 0); dstIndex += 8; // 7 Reserved dstIndex += 8; // RootDirectory = 0 final byte[] nameBytes = this.fileName.getBytes(StandardCharsets.UTF_16LE); SMBUtil.writeInt4(nameBytes.length, dst, dstIndex); dstIndex += 4; System.arraycopy(nameBytes, 0, dst, dstIndex, nameBytes.length);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/DurableHandleRequest.java
/** * Context name for durable handle request */ public static final String CONTEXT_NAME = "DHnQ"; private static final byte[] CONTEXT_NAME_BYTES = CONTEXT_NAME.getBytes(); private static final int STRUCTURE_SIZE = 16; private long reserved; // Must be zero /** * Create a new durable handle request */ public DurableHandleRequest() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 2.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/cache/CacheAction.java
} final StreamResponse response = asStream(DocumentUtil.getValue(doc, fessConfig.getIndexFieldDocId(), String.class)).contentType("text/html; charset=UTF-8") .data(content.getBytes(Constants.CHARSET_UTF_8)); response.headerContentDispositionInline(); // TODO will be fixed in lastaflute return response; }Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 3.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java
byte[] buffer = new byte[50]; int used = cmd.writeBytesWireFormat(buffer, 0); // Calculate expected size: 1 byte for command + string bytes + 1 null terminator byte[] expectedString = "testfile.txt".getBytes("windows-1252"); assertEquals(1 + expectedString.length + 1, used, "Expected exactly one command byte plus OEM string and NUL terminator");
Registered: Sat Dec 20 13:44:44 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/FilenameExtractorEnhancedTest.java
/** * Test that input stream content is not read (only validated). */ public void test_getText_doesNotReadInputStream() throws Exception { final byte[] testData = "This data should not be read".getBytes(); final InputStream in = new ByteArrayInputStream(testData); final Map<String, String> params = new HashMap<>(); params.put(ExtractData.RESOURCE_NAME_KEY, "filename.txt");Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 7K bytes - Viewed (0)