Package org.apache.activemq.console.command.store.tar

Examples of org.apache.activemq.console.command.store.tar.TarEntry


    public void finish() throws IOException {
        stream.close();
    }

    private void store(String ext, Buffer value) throws IOException {
        TarEntry entry = new TarEntry(seq + "." + ext);
        seq += 1;
        entry.setSize(value.length());
        stream.putNextEntry(entry);
        value.writeTo(stream);
        stream.closeEntry();
    }
View Full Code Here


        value.writeTo(stream);
        stream.closeEntry();
    }

    private void store(String ext, MessageBuffer<?,?> value) throws IOException {
        TarEntry entry = new TarEntry(seq + "." + ext);
      seq += 1;
      entry.setSize(value.serializedSizeFramed());
      stream.putNextEntry(entry);
      value.writeFramed(stream);
      stream.closeEntry();
    }
View Full Code Here

TOP

Related Classes of org.apache.activemq.console.command.store.tar.TarEntry

Copyright © 2018 www.massapicom. 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.