Tabnine Logo
MarshalOutputStream.writeAnnotation
Code IndexAdd Tabnine to your IDE (free)

How to use
writeAnnotation
method
in
net.jini.io.MarshalOutputStream

Best Java code snippets using net.jini.io.MarshalOutputStream.writeAnnotation (Showing top 5 results out of 315)

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

@Override
protected void writeAnnotation(String annotation) throws IOException {
super.writeAnnotation(annotation);
}
 
origin: xap/xap

/**
 * Annotates the stream descriptor for the class <code>cl</code>.
 *
 * <p><code>MarshalOutputStream</code> implements this method as follows:
 *
 * <p>This method invokes {@link RMIClassLoader#getClassAnnotation
 * RMIClassLoader.getClassAnnotation} with <code>cl</code> to get the appropriate class
 * annotation string value (possibly <code>null</code>), and then it invokes this stream's
 * {@link #writeAnnotation writeAnnotation} method with that string to record the annotation.
 *
 * @param cl the class to annotate
 * @throws IOException          if <code>writeAnnotation</code> throws an <code>IOException</code>
 * @throws NullPointerException if <code>cl</code> is <code>null</code>
 **/
protected void annotateClass(Class cl) throws IOException {
  writeAnnotation(getAnnotation(cl));
}
origin: xap/xap

/**
 * Annotates the stream descriptor for the proxy class <code>cl</code>.
 *
 * <p><code>MarshalOutputStream</code> implements this method as follows:
 *
 * <p>This method invokes {@link RMIClassLoader#getClassAnnotation
 * RMIClassLoader.getClassAnnotation} with <code>cl</code> to get the appropriate class
 * annotation string value (possibly <code>null</code>), and then it invokes this stream's
 * {@link #writeAnnotation writeAnnotation} method with that string to record the annotation.
 *
 * @param cl the proxy class to annotate
 * @throws IOException          if <code>writeAnnotation</code> throws an <code>IOException</code>
 * @throws NullPointerException if <code>cl</code> is <code>null</code>
 **/
protected void annotateProxyClass(Class cl) throws IOException {
  writeAnnotation(getAnnotation(cl));
}
origin: au.net.zeus.jgdms/jgdms-platform

/**
 * Annotates the stream descriptor for the class <code>cl</code>.
 *
 * <p><code>MarshalOutputStream</code> implements this method as
 * follows:
 *
 * <p>This method invokes {@link RMIClassLoaderSpi#getClassAnnotation
 * RMIClassLoaderSpi.getClassAnnotation} with <code>cl</code> to get
 * the appropriate class annotation string value (possibly
 * <code>null</code>), and then it invokes this stream's {@link
 * #writeAnnotation writeAnnotation} method with that string to
 * record the annotation.
 *
 * @param cl the class to annotate
 *
 * @throws IOException if <code>writeAnnotation</code> throws an
 * <code>IOException</code>
 *
 * @throws NullPointerException if <code>cl</code> is
 * <code>null</code>
 **/
@Override
protected void annotateClass(Class cl) throws IOException {
writeAnnotation(ClassLoading.getClassAnnotation(cl));
}
origin: au.net.zeus.jgdms/jgdms-platform

/**
 * Annotates the stream descriptor for the proxy class
 * <code>cl</code>.
 *
 * <p><code>MarshalOutputStream</code> implements this method as
 * follows:
 *
 * <p>This method invokes {@link RMIClassLoaderSpi#getClassAnnotation
 * RMIClassLoaderSpi.getClassAnnotation} with <code>cl</code> to get
 * the appropriate class annotation string value (possibly
 * <code>null</code>), and then it invokes this stream's {@link
 * #writeAnnotation writeAnnotation} method with that string to
 * record the annotation.
 *
 * @param cl the proxy class to annotate
 *
 * @throws IOException if <code>writeAnnotation</code> throws an
 * <code>IOException</code>
 *
 * @throws NullPointerException if <code>cl</code> is
 * <code>null</code>
 **/
@Override
protected void annotateProxyClass(Class cl) throws IOException {
writeAnnotation(ClassLoading.getClassAnnotation(cl));
}
net.jini.ioMarshalOutputStreamwriteAnnotation

Javadoc

Writes a class annotation string value (possibly null) to be read by a corresponding MarshalInputStream implementation.

MarshalOutputStream implements this method to just write the annotation value to this stream using ObjectOutputStream#writeObject.

A subclass can override this method to write the annotation to a different location.

Popular methods of MarshalOutputStream

  • writeObject
  • flush
  • <init>
  • close
  • enableReplaceObject
  • getAnnotation
    Returns the class CodeBase if needed or null.
  • writeLong

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Join (org.hibernate.mapping)
  • Github Copilot alternatives
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