- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 463 for GetBytes (0.15 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/XmlExtractorTest.java
CloseableUtil.closeQuietly(in); logger.info(content); assertTrue(content.contains("ใในใ")); } public void test_getXml_empty() { final InputStream in = new ByteArrayInputStream("".getBytes()); final String content = xmlExtractor.getText(in, null).getContent(); CloseableUtil.closeQuietly(in); logger.info(content); assertEquals("", content); }
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 6.4K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ProcessFixture.groovy
} } private String bash(String commands) { return execute(["bash"] as Object[], new ByteArrayInputStream(commands.getBytes())) } private String execute(Object[] commandLine, InputStream input) { def output = new ByteArrayOutputStream() def e = TestFiles.execHandleFactory().newExec()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5.6K bytes - Viewed (0) -
tests/fuzz/analyzer_fuzzer.go
"istio.io/istio/pkg/log" ) var availableAnalyzers = analyzers.All() // createRandomConfigFile creates a single fuzzed config file func createRandomConfigFile(f *fuzz.ConsumeFuzzer) (string, error) { data, err := f.GetBytes() if err != nil { return "nobytes", err } tmpfile, err := os.CreateTemp("", "example") if err != nil { return "nofile", err } if _, err := tmpfile.Write(data); err != nil { return "nofile", err
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 4.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/sources/process/ProcessOutputValueSourceTest.groovy
def spec = specFactory.newExecAction() action.execute(spec) spec.standardOutput.write("output".getBytes(Charset.defaultCharset())) spec.standardOutput.close() spec.errorOutput.write("error".getBytes(Charset.defaultCharset())) spec.errorOutput.close() return Stub(ExecResult) { getExitValue() >> 0 }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 6.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteStreamsTest.java
byte[] data = new byte[17]; data[1] = 15; System.arraycopy("Kilroy was here".getBytes(Charsets.UTF_8), 0, data, 2, 15); ByteArrayDataInput in = ByteStreams.newDataInput(data); assertEquals("Kilroy was here", in.readUTF()); } public void testNewDataInput_readChar() { byte[] data = "qed".getBytes(Charsets.UTF_16BE); ByteArrayDataInput in = ByteStreams.newDataInput(data);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 21.9K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java
for (int i = 0; i < reps; i++) { res += System.identityHashCode( hashFunctionEnum .getHashFunction() .hashBytes(strings[i & SAMPLE_MASK].getBytes(StandardCharsets.UTF_8))); } return res; } @Benchmark int hashUtf8GetBytesHasher(int reps) { int res = 0; for (int i = 0; i < reps; i++) { res +=
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 5.3K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheStandardStreamsIntegrationTest.groovy
"exec" | "java.io.ByteArrayInputStream" | "new ByteArrayInputStream('Gradle'.getBytes('UTF-8'))" "exec" | "java.io.FileInputStream" | "new FileInputStream(file('input.txt'))" "javaExec" | "java.io.ByteArrayInputStream" | "new ByteArrayInputStream('Gradle'.getBytes('UTF-8'))" "javaExec" | "java.io.FileInputStream" | "new FileInputStream(file('input.txt'))" }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 8.6K bytes - Viewed (0) -
src/cmd/go/internal/web/api.go
} func (e *HTTPError) Unwrap() error { return e.Err } // GetBytes returns the body of the requested resource, or an error if the // response status was not http.StatusOK. // // GetBytes is a convenience wrapper around Get and Response.Err. func GetBytes(u *url.URL) ([]byte, error) { resp, err := Get(DefaultSecurity, u) if err != nil { return nil, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 25 13:00:34 UTC 2022 - 6.9K bytes - Viewed (0) -
android/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: Fri Apr 21 02:27:51 UTC 2017 - 1.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type1Message.java
if (suppliedDomain != null && suppliedDomain.length() != 0) { hostInfo = true; flags |= NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED; domain = suppliedDomain.toUpperCase().getBytes( getOEMEncoding()); } else { flags &= (NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED ^ 0xffffffff); } byte[] workstation = new byte[0];
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 8K bytes - Viewed (0)