All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.io.MarshalledValueByteStream Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.io;


import java.io.OutputStream;

import org.jboss.marshalling.ByteOutput;

/**
 * A stream of bytes which can be written to, and the underlying byte array can be directly accessed.
 * 
 * By implementing {@link org.jboss.marshalling.ByteOutput} we avoid the need for the byte stream to be wrapped by
 * {@link org.jboss.marshalling.Marshalling#createByteOutput(OutputStream)}
 *
 * @author Manik Surtani
 * @author Sanne Grinovero
 * @since 5.1
 */
public abstract class MarshalledValueByteStream extends OutputStream implements ByteOutput {

   public abstract int size();

   public abstract byte[] getRaw();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy