- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for bytes (0.12 sec)
-
src/main/java/org/codelibs/curl/CurlResponse.java
public String getContentAsString() { final byte[] bytes = new byte[4096]; try (BufferedInputStream bis = new BufferedInputStream(getContentAsStream()); ByteArrayOutputStream baos = new ByteArrayOutputStream()) { int length = bis.read(bytes); while (length != -1) { if (length != 0) { baos.write(bytes, 0, length); }
Java - Registered: Thu May 09 15:34:10 GMT 2024 - Last Modified: Mon Nov 14 21:05:19 GMT 2022 - 4K bytes - Viewed (0) -
src/main/java/jcifs/util/Strings.java
/** * * @param str * @return the string as bytes (ASCII) */ public static byte[] getASCIIBytes ( String str ) { return getBytes(str, ASCII_ENCODING); } /** * @param str * @param config * @return the string as bytes */ public static byte[] getOEMBytes ( String str, Configuration config ) { if ( str == null ) {
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Mon Mar 13 12:00:57 GMT 2023 - 4.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
throw new IORuntimeException(e); } } public static void writeBytes(final String pathname, final byte[] bytes) { try (FileOutputStream fos = OutputStreamUtil.create(new File(pathname))) { ChannelUtil.write(fos.getChannel(), ByteBuffer.wrap(bytes)); } catch (final IOException e) { throw new IORuntimeException(e); } }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 9K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/FileUtilTest.java
File inputFile = URLUtil.toFile(url); /** * @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 {
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) -
src/main/java/org/codelibs/fess/util/MemoryUtil.java
} else if (size.divide(ONE_KB_BI).compareTo(BigInteger.ZERO) > 0) { displaySize = new BigDecimal(size).divide(BigDecimal.valueOf(1000)) + "KB"; } else { displaySize = size + "bytes"; } return displaySize; } public static long getUsedMemory() { final Runtime runtime = Runtime.getRuntime(); final long freeBytes = runtime.freeMemory();
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 4.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/SerializeUtil.java
} /** * {@literal byte}の配列をオブジェクトに変換します。 * * @param bytes * デシリアライズする配列。{@literal null}や空配列であってはいけません * @return 復元したオブジェクト */ public static Object fromBinaryToObject(final byte[] bytes) { assertArgumentNotEmpty("bytes", bytes); try { final ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 3.5K bytes - Viewed (0) -
src/main/java/jcifs/pac/ASN1Util.java
* * BC no longer seems to allow that out of the box * * @param expectTag * @param in * @return coded bytes of the tagged object * @throws IOException */ public static byte[] readUnparsedTagged(int expectTag, int limit, ASN1InputStream in) throws IOException { int ftag = in.read(); int tag = readTagNumber(in, ftag);
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Mon Oct 02 12:02:06 GMT 2023 - 6.5K bytes - Viewed (0) -
src/packaging/common/systemd/fess.service
SuccessExitStatus=143 # Specifies the maximum file descriptor number that can be opened by this process LimitNOFILE=${packaging.os.max.open.files} # Specifies the maximum number of bytes of memory that may be locked into RAM # Set to "infinity" if you use the 'bootstrap.mlockall: true' option # in fess.yml and 'MAX_LOCKED_MEMORY=unlimited' in ${packaging.env.file} #LimitMEMLOCK=infinity
Plain Text - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Sun Jan 15 06:32:15 GMT 2023 - 1.1K bytes - Viewed (0) -
src/main/assemblies/files/service.bat
if "%unit%" == "k" goto kilo if "%unit%" == "K" goto kilo if "%unit%" == "m" goto mega if "%unit%" == "M" goto mega if "%unit%" == "g" goto giga if "%unit%" == "G" goto giga rem no unit found, must be bytes; consider the whole value set conv=%value% rem convert to KB set /a conv=%conv% / 1024 :kilo rem convert to MB set /a conv=%conv% / 1024 goto mega :giga rem convert to MB set /a conv=%conv% * 1024
Batch File - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Sun Jan 15 06:32:15 GMT 2023 - 6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/BinaryConversionUtil.java
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.3K bytes - Viewed (0)