- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 27 for ByteArrayOutputStream (0.36 sec)
-
src/main/java/org/codelibs/fess/helper/DocumentHelper.java
} return hash; } public String encodeSimilarDocHash(final String hash) { if (hash != null && !hash.startsWith(SIMILAR_DOC_HASH_PREFIX)) { try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) { try (GZIPOutputStream gos = new GZIPOutputStream(baos)) { gos.write(hash.getBytes(Constants.UTF_8)); }
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 12K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/timer/MonitorTarget.java
return buf; } protected StringBuilder appendException(final StringBuilder buf, final Exception exception) { try (ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintWriter writer = new PrintWriter(baos, false, Constants.CHARSET_UTF_8)) { exception.printStackTrace(writer); writer.flush();
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/InputStreamUtil.java
* @return byteの配列 */ public static final byte[] getBytes(final InputStream is) { assertArgumentNotNull("is", is); final ByteArrayOutputStream os = new ByteArrayOutputStream(BUF_SIZE); CopyUtil.copy(is, os); return os.toByteArray(); } /** * {@link InputStream#available()}の例外処理をラップしたメソッドです。 * * @param is
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 3.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/timer/SystemMonitorTarget.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.timer; import java.io.ByteArrayOutputStream; import java.io.OutputStream; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; import org.apache.commons.text.StringEscapeUtils; import org.apache.logging.log4j.LogManager;
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 7.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MultimapBuilderTest.java
assertEquals(object.getClass(), copy.getClass()); } @J2ktIncompatible @GwtIncompatible // serialization private static Object reserialize(Object object) throws Exception { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); new ObjectOutputStream(bytes).writeObject(object); return new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray())).readObject(); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 27 09:26:07 GMT 2024 - 5.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/api/WebApiResponse.java
import org.apache.commons.io.output.ByteArrayOutputStream; public class WebApiResponse extends HttpServletResponseWrapper { public WebApiResponse(final HttpServletResponse response) { super(response); } @Override public PrintWriter getWriter() throws IOException { // dummy stream return new PrintWriter(new ByteArrayOutputStream()); }
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 1.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
import com.google.common.primitives.UnsignedInteger; import com.google.common.primitives.UnsignedLong; import com.google.errorprone.annotations.Keep; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintStream; import java.io.PrintWriter; import java.io.Reader; import java.io.Serializable;
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 17 16:33:44 GMT 2024 - 21K bytes - Viewed (1) -
android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
import com.google.common.primitives.UnsignedInteger; import com.google.common.primitives.UnsignedLong; import com.google.errorprone.annotations.Keep; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintStream; import java.io.PrintWriter; import java.io.Reader; import java.io.Serializable;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 17 16:33:44 GMT 2024 - 20.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMapTest.java
} ImmutableMap<Integer, Integer> map = RegularImmutableMap.fromEntries(entries); Set<Integer> keySet = map.keySet(); Collection<Integer> values = map.values(); ByteArrayOutputStream bytes = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(bytes); oos.writeObject(map); oos.flush(); int mapSize = bytes.size(); oos.writeObject(keySet);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 27 13:27:08 GMT 2024 - 41.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java
if ("system.properties".equals(id)) { return asStream(id).contentTypeOctetStream().stream(out -> { try (final ByteArrayOutputStream baos = new ByteArrayOutputStream()) { ComponentUtil.getSystemProperties().store(baos, id); try (final InputStream in = new ByteArrayInputStream(baos.toByteArray())) {
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 25.2K bytes - Viewed (0)