Codota Logo
net.jini.io
Code IndexAdd Codota to your IDE (free)

How to use net.jini.io

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: au.net.zeus.jgdms/jgdms-platform

@Override
public MarshalInstanceOutput createMarshalOutput(OutputStream objOut,
  OutputStream locOut, Collection context) throws IOException {
  return new MarshalledInstanceOutputStream(objOut, locOut, context);
}
}
origin: au.net.zeus.jgdms/jgdms-platform

public Object resolve(
  CodebaseAccessor bootstrapProxy,
  MarshalledInstance smartProxy,
  ClassLoader parentLoader, 
  ClassLoader verifierLoader, 
  Collection context) throws IOException, ClassNotFoundException 
{
return smartProxy.get(parentLoader, true, verifierLoader, context);
}
origin: au.net.zeus.jgdms.mercury/mercury-service

/**
 * Activation constructor
 *
 * @param activationID activation ID passed in by the activation daemon.
 * @param data state data needed to re-activate a Mercury server
 */
MailboxImpl(ActivationID activationID, MarshalledObject data) 
throws Exception
{
  this((String[]) new MarshalledInstance(data).get(false), activationID,
      true, new Object[] {activationID, data} );
}
 
origin: au.net.zeus.jgdms.mercury/mercury-service

/** Set the reference to the client-supplied notification target */
public synchronized void setEventTarget(RemoteEventListener preparedTarget) 
throws IOException
{
  if (preparedTarget == null) {
  preparedEventTarget = null;
  marshalledEventTarget = null;
} else {
  preparedEventTarget = preparedTarget;
  marshalledEventTarget = 
      new MarshalledInstance(preparedTarget).convertToMarshalledObject();
}
}
 
origin: au.net.zeus.jgdms/jgdms-lib-dl

/**
 * Creates a new <code>MarshalledWrapper</code> wrapping a
 * <code>MarshalledInstance</code> containing the given object.
 *
 * @param obj object to create <code>MarshalledInstance</code> with
 * @throws IOException if <code>MarshalledInstance</code> creation fails
 */
public MarshalledWrapper(Object obj) throws IOException {
instance = new MarshalledInstance(obj);
}
origin: au.net.zeus.jgdms.phoenix-activation/phoenix

  @Override
public void writeUpdate(OutputStream out, Object value)
  throws Exception
{
  MarshalOutputStream s =
  new MarshalOutputStream(out, Collections.EMPTY_LIST);
  s.writeObject(value);
  s.flush();
}
origin: au.net.zeus.jgdms/jgdms-platform

  Object readResolve() throws ObjectStreamException {
  return instance.convertToMarshalledObject();
  }
}
origin: au.net.zeus.jgdms/jgdms-platform

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

/**
 * Writes the specified byte to this byte array output stream.
 *
 * @param b the byte to be written.
 */
public void write(int b) {
  ensureCapacity(1);
  _buffer[_count++] = (byte) b;
}
origin: au.net.zeus.jgdms/jgdms-platform

private MarshalledInstance(Object obj, Collection context, MarshalFactory factory, ByteArrayOutputStream bout,
  ByteArrayOutputStream lout) throws IOException
{
this(bout, 
  obj != null ?
  writeOutRetLocAnnotation(obj, context, factory, bout, lout) 
  : null
);
}
 
origin: au.net.zeus.jgdms/jgdms-platform

@Override
protected boolean enableReplaceObject(boolean enable)
  throws SecurityException
{
boolean result = super.enableReplaceObject(enable);
  d.enableReplaceObject = enable;
return result;
}
 
origin: xap/xap

/**
 * Reads the next byte of data from this input stream. The value byte is returned as an
 * <code>int</code> in the range <code>0</code> to <code>255</code>. If no byte is available
 * because the end of the stream has been reached, the value <code>-1</code> is returned. <p>
 * This <code>read</code> method cannot block.
 *
 * @return the next byte of data, or <code>-1</code> if the end of the stream has been reached.
 */
public int read() {
  return (_position < _count) ? readUnsignedByte() : -1;
}
origin: au.net.zeus.jgdms/jgdms-platform

/**
 * Sub classes implement this method to use alternative Serialization
 * frameworks to unmarshall data.
 * @return a new MarshalFactory instance.
 */
protected MarshalFactory getMarshalFactory(){
return new MarshalFactoryInstance();
}
origin: xap/xap

/**
 * Set stream buffer, and reset the counter.
 *
 * @param buf new buffer
 */
public void setBuffer(byte[] buf) {
  setBuffer(buf, 0);
}
origin: xap/xap

/**
 * Creates a <code>ByteArrayInputStream</code> so that it  uses <code>buffer</code> as its
 * buffer array. The buffer array is not copied. The initial value of <code>pos</code> is
 * <code>0</code> and the initial value of  <code>count</code> is the length of
 * <code>buffer</code>.
 *
 * @param buffer the input buffer.
 */
public OptimizedByteArrayInputStream(byte buffer[]) {
  setBuffer(buffer);
}
origin: xap/xap

  /**
   * Creates an instance with the specified detail message and cause.
   *
   * @param s     the detail message
   * @param cause the cause
   */
  public UnsupportedConstraintException(String s, Throwable cause) {
    super(s);
    initCause(cause);
  }
}
origin: au.net.zeus.jgdms/jgdms-platform

  public ClassLoader run() {
  return ((MarshalInputStream) input).getVerifierClassLoader();
  }
});
origin: au.net.zeus.jgdms/jgdms-platform

  public ClassLoader run() {
  return ((MarshalInputStream) input).getDefaultClassLoader();
  }
});
origin: au.net.zeus.jgdms/jgdms-platform

MarshalledObjectSerializer(MarshalledObject obj){
this(new MarshalledInstance(obj));
}
 
origin: xap/xap

public void writeByte(byte b) {
  ensureCapacity(1);
  _buffer[_count++] = b;
}
net.jini.io

Most used classes

  • MarshalledInstance
    A MarshalledInstance contains an object in serialized form. The contained object can be deserialized
  • MarshalOutputStream
    An extension of ObjectOutputStream that implements the dynamic class loading semantics of Java(TM) R
  • IntegrityEnforcement
    Defines a context element interface for determining if object integrity is being enforced on a strea
  • MarshalInputStream
    An extension of ObjectInputStream that implements the dynamic class loading semantics of Java(TM) Re
  • ObjectStreamContext
    Provides a collection of context information objects that are associated with an java.io.ObjectOutpu
  • MarshalledInstance$MarshalledInstanceInputStream,
  • MarshalledInstance$MarshalledInstanceOutputStream,
  • MarshalledInstance$ToMOInputStream,
  • MarshalledObject,
  • OptimizedByteArrayOutputStream,
  • UnsupportedConstraintException,
  • AtomicValidationEnforcement,
  • MarshalFactory,
  • MarshalInstanceInput,
  • MarshalInstanceOutput,
  • MarshalledInstance$MarshalFactoryInstance,
  • OptimizedByteArrayInputStream
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now