Examples of ByteArrayOutputStream

@author Michael Zhou
  • com.alibaba.simpleimage.io.ByteArrayOutputStream
    本代码专为图片缓存使用,故默认缓冲区设得比较大 非同步的ByteArrayOutputStream替换方案, 执行toByteArray()方法时返回的是只读的内部字节数组, 避免了没有必要的字节复制. 本代码移植自IBM developer works精彩文章, 参见package文档. @author Michael Zhou @author wendell @version $Id: ByteArrayOutputStream.java 593 2004-02-26 13:47:19Z baobao $
  • com.ibm.jvm.util.ByteArrayOutputStream
  • com.zaranux.client.crypto.ByteArrayOutputStream
    This class implements an output stream in which the data is written into a byte array. The buffer automatically grows as data is written to it. The data can be retrieved using toByteArray() and toString().

    Closing a ByteArrayOutputStream has no effect. The methods in this class can be called after the stream has been closed without generating an IOException. @author Arthur van Hoff @since JDK1.0

  • java.io.ByteArrayOutputStream
    ByteArrayOutputStream is a class whose underlying stream is represented by a byte array. As bytes are written to this stream, the local byte array may be expanded to hold more bytes. @see ByteArrayInputStream
  • net.gleamynode.netty.array.ByteArrayOutputStream
    @author The Netty Project (netty@googlegroups.com) @author Trustin Lee (trustin@gmail.com) @version $Rev: 476 $, $Date: 2008-07-04 15:06:37 +0900 (Fri, 04 Jul 2008) $ @see ByteArrayInputStream @see ByteArrayBufferInputStream @apiviz.uses net.gleamynode.netty.array.CompositeByteArray
  • org.apache.activeio.util.ByteArrayOutputStream
  • org.apache.activemq.util.ByteArrayOutputStream
    Very similar to the java.io.ByteArrayOutputStream but this version is not thread safe and the resulting data is returned in a ByteSequence to avoid an extra byte[] allocation.
  • org.apache.axis.utils.ByteArrayOutputStream
    This class implements an output stream in which the data is written into a byte array. The buffer automatically grows as data is written to it.

    The data can be retrieved using toByteArray() and toString().

    Closing a ByteArrayOutputStream has no effect. The methods in this class can be called after the stream has been closed without generating an IOException.

    This is an alternative implementation of the java.io.ByteArrayOutputStream class. The original implementation only allocates 32 bytes at the beginning. As this class is designed for heavy duty it starts at 1024 bytes. In contrast to the original it doesn't reallocate the whole memory block but allocates additional buffers. This way no buffers need to be garbage collected and the contents don't have to be copied to the new buffer. This class is designed to behave exactly like the original. The only exception is the deprecated toString(int) method that has been ignored. @author Jeremias Maerki

  • org.apache.commons.io.output.ByteArrayOutputStream
    This class implements an output stream in which the data is written into a byte array. The buffer automatically grows as data is written to it.

    The data can be retrieved using toByteArray() and toString().

    Closing a ByteArrayOutputStream has no effect. The methods in this class can be called after the stream has been closed without generating an IOException.

    This is an alternative implementation of the java.io.ByteArrayOutputStream class. The original implementation only allocates 32 bytes at the beginning. As this class is designed for heavy duty it starts at 1024 bytes. In contrast to the original it doesn't reallocate the whole memory block but allocates additional buffers. This way no buffers need to be garbage collected and the contents don't have to be copied to the new buffer. This class is designed to behave exactly like the original. The only exception is the deprecated toString(int) method that has been ignored. @author Jeremias Maerki @version $Id: ByteArrayOutputStream.java 369075 2006-01-14 18:23:42Z scolebourne $

  • org.apache.wicket.util.io.ByteArrayOutputStream
    This class implements an output stream in which the data is written into a byte array. The buffer automatically grows as data is written to it.

    The data can be retrieved using toByteArray() and toString().

    Closing a ByteArrayOutputStream has no effect. The methods in this class can be called after the stream has been closed without generating an IOException.

    This is an alternative implementation of the java.io.ByteArrayOutputStream class. The original implementation only allocates 32 bytes at the beginning. As this class is designed for heavy duty it starts at 1024 bytes. In contrast to the original it doesn't reallocate the whole memory block but allocates additional buffers. This way no buffers need to be garbage collected and the contents don't have to be copied to the new buffer. This class is designed to behave exactly like the original. The only exception is the deprecated toString(int) method that has been ignored. @author Jeremias Maerki @version $Id$

  • org.fusesource.hawtbuf.ByteArrayOutputStream
    irino.com">Hiram Chirino
  • org.more.util.io.output.ByteArrayOutputStream
    This class implements an output stream in which the data is written into a byte array. The buffer automatically grows as data is written to it.

    The data can be retrieved using toByteArray() and toString().

    Closing a ByteArrayOutputStream has no effect. The methods in this class can be called after the stream has been closed without generating an IOException.

    This is an alternative implementation of the {@link java.io.ByteArrayOutputStream}class. The original implementation only allocates 32 bytes at the beginning. As this class is designed for heavy duty it starts at 1024 bytes. In contrast to the original it doesn't reallocate the whole memory block but allocates additional buffers. This way no buffers need to be garbage collected and the contents don't have to be copied to the new buffer. This class is designed to behave exactly like the original. The only exception is the deprecated toString(int) method that has been ignored. @version $Id: ByteArrayOutputStream.java 1304052 2012-03-22 20:55:29Z ggregory $

  • webit.script.util.ByteArrayOutputStream

  • Examples of org.apache.axis.utils.ByteArrayOutputStream

                  STSManager stsMgr =
                          new STSManager(this.options);
                  docRes = stsMgr.handleRequest(docReq, docRes);
    //              log.debug("STSServerHandler: STSManager has done the job");
                  ByteArrayOutputStream os = new ByteArrayOutputStream();
                  XMLUtils.outputDOM(docRes, os, true);
                  //modify the current message
                  sPartRes.setCurrentMessage(os.toByteArray(), SOAPPart.FORM_BYTES);  
                  //set current message to the context
            //msgCntxt.setCurrentMessage(sPartRes.getMessage());
            //msgCntxt.setPastPivot(true);
            //msgCntxt.setPastPivot(true);
            msgCntxt.setCurrentMessage(sPartRes.getMessage());
    View Full Code Here

    Examples of org.apache.commons.io.output.ByteArrayOutputStream

         * @return the requested byte array
         * @throws NullPointerException if the input is null
         * @throws IOException if an I/O error occurs
         */
        public static byte[] toByteArray(InputStream input) throws IOException {
            ByteArrayOutputStream output = new ByteArrayOutputStream();
            copy(input, output);
            return output.toByteArray();
        }
    View Full Code Here

    Examples of org.apache.wicket.util.io.ByteArrayOutputStream

      }

      protected byte[] readAllResources(List<IResourceStream> resources) throws IOException,
        ResourceStreamNotFoundException
      {
        ByteArrayOutputStream output = new ByteArrayOutputStream();
        for (IResourceStream curStream : resources)
          IOUtils.copy(curStream.getInputStream(), output);

        byte[] bytes = output.toByteArray();

        if (getCompressor() != null)
        {
          String nonCompressed = new String(bytes, "UTF-8");
          bytes = getCompressor().compress(nonCompressed).getBytes("UTF-8");
    View Full Code Here

    Examples of org.fusesource.hawtbuf.ByteArrayOutputStream

        }

        public void beforeMarshall(OpenWireFormat wireFormat) throws IOException {
            // Need to marshal the properties.
            if (marshalledProperties == null && properties != null) {
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                DataOutputStream os = new DataOutputStream(baos);
                MarshallingSupport.marshalPrimitiveMap(properties, os);
                os.close();
                marshalledProperties = baos.toBuffer();
            }
        }
    View Full Code Here

    Examples of org.more.util.io.output.ByteArrayOutputStream

         * @return the requested byte array
         * @throws NullPointerException if the input is null
         * @throws IOException if an I/O error occurs
         */
        public static byte[] toByteArray(final InputStream input) throws IOException {
            ByteArrayOutputStream output = new ByteArrayOutputStream();
            IOUtils.copy(input, output);
            return output.toByteArray();
        }
    View Full Code Here

    Examples of webit.script.util.ByteArrayOutputStream

        public Object execute(final Context context) {

            final Out current = context.out;
            final Object result;
            if (current.isByteStream()) {
                ByteArrayOutputStream out = new ByteArrayOutputStream(256);
                context.out = new OutputStreamOut(out, (OutputStreamOut) current);
                result = srcExpr.execute(context);
                toExpr.setValue(context, out.toArray());
            } else {
                CharArrayWriter writer = new CharArrayWriter(256);
                context.out = current instanceof WriterOut
                        ? new WriterOut(writer, (WriterOut) current)
                        : new WriterOut(writer, context.encoding, context.template.engine.getCoderFactory());
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. All rights reserved.
    All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.