Tabnine Logo
MarshalFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
MarshalFactory
in
net.jini.io

Best Java code snippets using net.jini.io.MarshalFactory (Showing top 2 results out of 315)

origin: au.net.zeus.jgdms/jgdms-platform

/**
 * 
 * @param obj Object to be marshaled.
 * @param context
 * @param factory MarshalFactory used to create MarshalIntstanceOutput
 * @param bout ByteArrayOutputStream to write object serial form.
 * @param lout ByteArrayOutputStream to write code-base annotation to.
 * @return byte array of location.
 * @throws IOException 
 */
private static byte[] writeOutRetLocAnnotation(Object obj, Collection context, MarshalFactory factory,
  ByteArrayOutputStream bout, ByteArrayOutputStream lout) throws IOException
{
if (context == null) throw new NullPointerException();
if (factory == null) throw new NullPointerException();
MarshalInstanceOutput out = null;
try {
  out = factory.createMarshalOutput(bout, lout, context);
  out.writeObject(obj);
  out.flush();
  // locBytes is null if no annotations
  return out.hadAnnotations() ? lout.toByteArray() : null;
} finally {
  try {
  if (out != null) out.close();
  } catch (IOException e){} // Ignore
}
}
 
origin: au.net.zeus.jgdms/jgdms-platform

in = getMarshalFactory().createMarshalInput(
bin, lin, defaultLoader, verifyCodebaseIntegrity,
verifierLoader, ctext);
net.jini.ioMarshalFactory

Javadoc

Allows for alternative serialization implementations of MarshalledInstance.

Most used methods

  • createMarshalInput
  • createMarshalOutput

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JList (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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