Tabnine Logo
StreamingMarshaller.objectToObjectStream
Code IndexAdd Tabnine to your IDE (free)

How to use
objectToObjectStream
method
in
org.infinispan.marshall.StreamingMarshaller

Best Java code snippets using org.infinispan.marshall.StreamingMarshaller.objectToObjectStream (Showing top 1 results out of 315)

origin: org.infinispan/infinispan-cachestore-jdbm

/**
* Writes to a stream the number of entries (long) then the entries themselves.
*/
@Override
public void toStream(ObjectOutput out) throws CacheLoaderException {
 try {
   Set<InternalCacheEntry> loadAll = loadAll();
   log.debug("toStream() entries");
   int count = 0;
   for (InternalCacheEntry entry : loadAll) {
    getMarshaller().objectToObjectStream(entry, out);
    count++;
   }
   getMarshaller().objectToObjectStream(null, out);
   log.debugf("wrote %d entries", count);
 } catch (IOException e) {
   throw new CacheLoaderException(e);
 }
}
org.infinispan.marshallStreamingMarshallerobjectToObjectStream

Javadoc

Marshalls an object to a given java.io.ObjectOutput

Popular methods of StreamingMarshaller

  • objectToByteBuffer
  • finishObjectInput
    Finish using the given ObjectInput. After opening a ObjectInput and calling objectFromObjectStream()
  • objectFromByteBuffer
  • objectFromObjectStream
    Unmarshalls an object from an java.io.ObjectInput
  • startObjectInput
    Create and open a new ObjectInput for the given input stream. This method should be used for opening
  • finishObjectOutput
    Finish using the given ObjectOutput. After opening a ObjectOutput and calling objectToObjectStream()
  • startObjectOutput

Popular in Java

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now