- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 222 for getBytes (0.24 sec)
-
src/test/java/org/codelibs/core/misc/Base64UtilTest.java
/** * @author higa * */ public class Base64UtilTest extends TestCase { private static final String ORIGINAL = "how now brown cow\r\n"; private static final byte[] BINARY_DATA = ORIGINAL.getBytes(); private static final String ENCODED_DATA = "aG93IG5vdyBicm93biBjb3cNCg=="; /** * @throws Exception */ public void testEncode() throws Exception {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java
super.setUp(); file1 = File.createTempFile("synonym", ".txt"); FileUtil.writeBytes(file1.getAbsolutePath(), "a1=>A1\nb1,b2 => B1\nc1 => C1, C2\nx1,X1\ny1, Y1, y2" .getBytes(Constants.UTF_8)); // TODO set up opensearch and dictionaryManager synonymFile = new SynonymFile("1", file1.getAbsolutePath(), new Date()); } @Override
Java - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 9K bytes - Viewed (0) -
src/main/java/jcifs/internal/dfs/DfsReferralRequestBuffer.java
@Override public int encode ( byte[] dst, int dstIndex ) { int start = dstIndex; SMBUtil.writeInt2(this.maxReferralLevel, dst, dstIndex); dstIndex += 2; byte[] pathBytes = this.path.getBytes(StandardCharsets.UTF_16LE); System.arraycopy(pathBytes, 0, dst, dstIndex, pathBytes.length); dstIndex += pathBytes.length; SMBUtil.writeInt2(0, dst, dstIndex); dstIndex += 2; // null terminator
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 1.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/TestCharSource.java
private final TestByteSource byteSource; public TestCharSource(String content, TestOption... options) { this.byteSource = new TestByteSource(content.getBytes(UTF_8), options); } @Override public boolean wasStreamOpened() { return byteSource.wasStreamOpened(); } @Override public boolean wasStreamClosed() {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Fri Nov 09 21:39:24 GMT 2012 - 1.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesTest.java
File asciiFile = getTestFile("ascii.txt"); File i18nFile = getTestFile("i18n.txt"); assertTrue(Arrays.equals(ASCII.getBytes(Charsets.US_ASCII), Files.toByteArray(asciiFile))); assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), Files.toByteArray(i18nFile))); assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), Files.asByteSource(i18nFile).read())); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 22.2K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type3Message.java
domainBytes = unicode ? domainName.getBytes(UNI_ENCODING) : domainName.getBytes(oemCp); size += domainBytes.length; } String userName = getUser(); byte[] userBytes = null; if ( userName != null && userName.length() != 0 ) { userBytes = unicode ? userName.getBytes(UNI_ENCODING) : userName.toUpperCase().getBytes(oemCp); size += userBytes.length;
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Tue Jul 07 12:07:20 GMT 2020 - 30.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/BaseEncodingTest.java
assertThat(encoding.encode(decoded.getBytes(UTF_8))).isEqualTo(encoded); } private static void testEncodesWithOffset( BaseEncoding encoding, String decoded, int offset, int len, String encoded) { assertThat(encoding.encode(decoded.getBytes(UTF_8), offset, len)).isEqualTo(encoded); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Aug 25 16:34:08 GMT 2022 - 24.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/FessPropTest.java
} }; File file = File.createTempFile("test", ".properties"); file.deleteOnExit(); FileUtil.writeBytes(file.getAbsolutePath(), "ldap.security.principal=******@****.***".getBytes("UTF-8")); DynamicProperties systemProps = new DynamicProperties(file); SingletonLaContainerFactory.getContainer().register(systemProps, "systemProperties");
Java - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 12.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NetServerEnum2.java
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Fri Mar 22 21:10:40 GMT 2019 - 3.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/FileUtilTest.java
/** * @throws Exception */ @Test public void testFileToFile() throws Exception { final byte[] bytes = readBytes(inputFile); assertThat(bytes, is("あいうえお".getBytes("UTF-8"))); } /** * @throws Exception */ @Test public void testReadUTF8() throws Exception { assertThat(FileUtil.readUTF8(getPath("hoge_utf8.txt")), is("あ")); }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.6K bytes - Viewed (0)