Examples of ByteArrayInputStream

@author Michael Zhou
  • com.alibaba.common.lang.io.ByteArrayInputStream
    非同步的ByteArrayInputStream替换方案, 本代码移植自IBM developer works精彩文章, 参见package文档. @author Michael Zhou @version $Id: ByteArrayInputStream.java 509 2004-02-16 05:42:07Z baobao $
  • com.zaranux.client.crypto.ByteArrayInputStream
    A ByteArrayInputStream contains an internal buffer that contains bytes that may be read from the stream. An internal counter keeps track of the next byte to be supplied by the read method.

    Closing a ByteArrayInputStream 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 @see java.io.StringBufferInputStream @since JDK1.0

  • java.io.ByteArrayInputStream
    ByteArrayInputStream is used for streaming over a byte array. @see ByteArrayOutputStream
  • net.gleamynode.netty.array.ByteArrayInputStream
    @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 ByteArrayOutputStream @see ByteArrayBufferInputStream @apiviz.uses net.gleamynode.netty.array.ByteArray
  • org.apache.activeio.util.ByteArrayInputStream
  • org.apache.activemq.util.ByteArrayInputStream
    Very similar to the java.io.ByteArrayInputStream but this version is not thread safe.
  • org.apache.kahadb.util.ByteArrayInputStream
    Very similar to the java.io.ByteArrayInputStream but this version is not thread safe.
  • org.fusesource.hawtbuf.ByteArrayInputStream
    irino.com">Hiram Chirino

  • Examples of com.alibaba.citrus.util.io.ByteArrayInputStream

            public void flush() throws IOException {
                ByteArray bytes = buffer.toByteArray();

                if (bytes.getLength() > 0) {
                    ByteArrayInputStream inputBytes = new ByteArrayInputStream(bytes.getRawBytes(), bytes.getOffset(),
                    InputStreamReader reader = new InputStreamReader(inputBytes, charset);

                    StreamUtil.io(reader, writer, true, false);
    View Full Code Here

    Examples of com.alibaba.common.lang.io.ByteArrayInputStream

            return copy;

        public InputStream toInputStream() {
            return new ByteArrayInputStream(bytes, offset, length);
    View Full Code Here

    Examples of com.zaranux.client.crypto.ByteArrayInputStream


        public void decode(byte[] encodedKey) throws InvalidKeyException {
            decode(new ByteArrayInputStream(encodedKey));
    View Full Code Here

    Examples of java.io.ByteArrayInputStream

        byte[] content = load(dirName, name);

        if (logger.isLoggable(BasicLevel.DEBUG))
          logger.log(BasicLevel.DEBUG, "loadobj, after load call");

        ByteArrayInputStream bis = new ByteArrayInputStream(content);
        ObjectInputStream ois = new ObjectInputStream(bis);
        try {
          Object obj = ois.readObject();
          return obj;
        } catch (Exception e) {
          String exceptionString = e.toString();
          if (exceptionString.indexOf("KNOWN PROBLEM") == -1)
          throw new IOException(e.getMessage());
        } finally {
    View Full Code Here

    Examples of java.io.ByteArrayInputStream

            "de;GMT+01:00;EUROSPORT;Eurosport;(c) by Eurosport;;;0;\"Eurosport\"\n" +
            "de;GMT+01:00;AXN;AXN;(c) by AXN;http://www.axntv.de;;273;\"AXN\"\n" +
            "de;GMT+01:00;DMAXPUNNY;DMAX PUNNY;(c) by DMAX;http://www.dmaxtv.de/;http://sender.wannawork.de/logos/DMAX.png;257;\"Wöhnungssüche\"\n" +
            "de;GMT+01:00;EUROSPORTPUNNY;Eurosport PUNNY;(c) by Eurosport;;;0;\"Küchendißteln\"\n" +
            "de;GMT+01:00;AXNPUNNY;AXN PUNNY;(c) by AXN;http://www.axntv.de;;273;\"Älbert 獠\"",
            toString(new GZIPInputStream(new ByteArrayInputStream(stream.toByteArray()))));
    View Full Code Here

    Examples of java.io.ByteArrayInputStream

            try {
                MappingOutputter out = new MappingOutputter();
                StringWriter stream = new StringWriter();
                out.write(this, new PrintWriter(stream));
                MappingLoader loader = new MappingLoader();
                MappingDocument doc =  loader.loadDocument(new ByteArrayInputStream(stream.toString().getBytes()));

                // Copy the values of the instance variables.
                doc.formatted = this.formatted;
                doc.encoding = this.encoding;
                doc.name = this.name;
    View Full Code Here

    Examples of java.io.ByteArrayInputStream

                return null;

            byte[] data = createByteArray(this.dataLength - 4);
        createRequestMessage(this.messageType, new NullTerminatedStringDataInputStream(new DataInputStream(new ByteArrayInputStream(data, 0, this.dataLength-4)), this.encoding));
        this.dataLength = null;
        this.messageType = null;
        return message;
    View Full Code Here

    Examples of java.io.ByteArrayInputStream

                } else if (o instanceof String) {
                    String soap = (String) o;
                    try {
                        XMLStreamReader xmlReader =
                                StAXUtils.createXMLStreamReader(new ByteArrayInputStream(soap.getBytes()));
                        StAXBuilder builder = new StAXSOAPModelBuilder(xmlReader);
                        OMElement elem = builder.getDocumentElement();
                        if (elem instanceof SOAPEnvelope) {
                            SOAPEnvelope soapEnvelope = (SOAPEnvelope) elem;
    View Full Code Here

    Examples of java.io.ByteArrayInputStream

       * any logging written to the appender after the invocation will not
       * be accessible through the reader.
       * @return A reader for the current buffer.
      public Reader getReader() {
        return new BufferedReader(new InputStreamReader(new ByteArrayInputStream(getBuffer())));
    View Full Code Here

    Examples of java.io.ByteArrayInputStream

          BufferedOutputStream bos =
            new BufferedOutputStream(new FileOutputStream(tempF));
          ZipInputStream zis = new ZipInputStream(new ByteArrayInputStream(zip));
          ZipEntry ze;
          final byte[] buff = new byte[1024];
          while ((ze = zis.getNextEntry()) != null) {
    //        System.out.println("Cache: inflating " + ze.getName());
            if (ze.isDirectory()) {
    View Full Code Here
    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.