- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 463 for GetBytes (0.17 sec)
-
android/guava-tests/test/com/google/common/io/TestCharSink.java
private final TestByteSink byteSink; public TestCharSink(TestOption... options) { this.byteSink = new TestByteSink(options); } public String getString() { return new String(byteSink.getBytes(), UTF_8); } @Override public boolean wasStreamOpened() { return byteSink.wasStreamOpened(); } @Override public boolean wasStreamClosed() { return byteSink.wasStreamClosed(); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Apr 21 02:27:51 UTC 2017 - 2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/BinaryConversionUtilTest.java
final byte[] b = { 0x00, 0x01 }; assertThat(BinaryConversionUtil.toBinary(b), is(b)); assertThat(BinaryConversionUtil.toBinary("hoge"), is("hoge".getBytes())); } /** * Test method for * {@link org.codelibs.core.convert.BinaryConversionUtil#toBinary(java.lang.Object)} * . */ @Test public void testToBinaryException() {
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/TestByteSink.java
private boolean outputStreamOpened; private boolean outputStreamClosed; public TestByteSink(TestOption... options) { this.options = ImmutableSet.copyOf(options); } byte[] getBytes() { return bytes.toByteArray(); } @Override public boolean wasStreamOpened() { return outputStreamOpened; } @Override public boolean wasStreamClosed() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Sep 15 13:47:32 UTC 2016 - 1.8K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/MethodInvocationTest.groovy
def equalInvocation = new MethodInvocation(String.class.getMethod("length"), ["param"] as Object[]) def differentMethod = new MethodInvocation(String.class.getMethod("getBytes"), ["param"] as Object[]) def differentArgs = new MethodInvocation(String.class.getMethod("length"), ["a", "b"] as Object[]) def nullArgs = new MethodInvocation(String.class.getMethod("length"), null)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 05 19:36:14 UTC 2023 - 1.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/kuromoji/KuromojiFileTest.java
FileUtil.write( file1.getAbsolutePath(), "token1,seg1,reading1,pos1\ntoken2,seg2,reading2,pos2\ntoken3,seg3,reading3,pos3" .getBytes(Constants.UTF_8)); } @Override protected void tearDown() throws Exception { file1.delete(); } */ @Override public void setUp() throws Exception {
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 7.3K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type1Message.java
flags |= NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED; domain = suppliedDomainString.toUpperCase().getBytes(getOEMEncoding()); size += domain.length; } else { flags &= ( NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED ^ 0xffffffff ); }
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Sep 02 12:55:08 UTC 2018 - 7.8K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteArrayDataOutput.java
void writeChars(String s); @Override void writeUTF(String s); /** * @deprecated This method is dangerous as it discards the high byte of every character. For * UTF-8, use {@code write(s.getBytes(StandardCharsets.UTF_8))}. */ @Deprecated @Override void writeBytes(String s); /** Returns the contents that have been written to this instance, as a byte array. */ byte[] toByteArray();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 28 20:13:02 UTC 2023 - 2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java
assertEquals("text/plain", responseData.getMimeType()); assertTrue(responseData.getUrl().endsWith("test/text1.txt")); final String content = new String(InputStreamUtil.getBytes(responseData.getResponseBody()), "UTF-8"); assertEquals("test1", content.trim()); } public void test_doGet_file_with_space() throws Exception {
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComNegotiate.java
int writeParameterWordsWireFormat( byte[] dst, int dstIndex ) { return 0; } int writeBytesWireFormat( byte[] dst, int dstIndex ) { byte[] dialects; try { dialects = DIALECTS.getBytes( "ASCII" ); } catch( UnsupportedEncodingException uee ) { return 0; } System.arraycopy( dialects, 0, dst, dstIndex, dialects.length ); return dialects.length; }
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 1.9K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/project/ExtensionDescriptorBuilderTest.java
} @AfterEach void tearDown() throws Exception { builder = null; } private InputStream toStream(String xml) { return new ByteArrayInputStream(xml.getBytes(StandardCharsets.UTF_8)); } @Test void testEmptyDescriptor() throws Exception { String xml = "<extension></extension>"; ExtensionDescriptor ed = builder.build(toStream(xml));
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Sep 06 08:39:32 UTC 2023 - 3K bytes - Viewed (0)