Tabnine Logo
ConnectionInfoMarshaller.looseUnmarsalNestedObject
Code IndexAdd Tabnine to your IDE (free)

How to use
looseUnmarsalNestedObject
method
in
org.apache.activemq.openwire.v3.ConnectionInfoMarshaller

Best Java code snippets using org.apache.activemq.openwire.v3.ConnectionInfoMarshaller.looseUnmarsalNestedObject (Showing top 4 results out of 315)

origin: apache/activemq

/**
 * Un-marshal an object instance from the data input stream
 * 
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException {
  super.looseUnmarshal(wireFormat, o, dataIn);
  ConnectionInfo info = (ConnectionInfo)o;
  info.setConnectionId((org.apache.activemq.command.ConnectionId)looseUnmarsalCachedObject(wireFormat,
                                               dataIn));
  info.setClientId(looseUnmarshalString(dataIn));
  info.setPassword(looseUnmarshalString(dataIn));
  info.setUserName(looseUnmarshalString(dataIn));
  if (dataIn.readBoolean()) {
    short size = dataIn.readShort();
    org.apache.activemq.command.BrokerId value[] = new org.apache.activemq.command.BrokerId[size];
    for (int i = 0; i < size; i++) {
      value[i] = (org.apache.activemq.command.BrokerId)looseUnmarsalNestedObject(wireFormat, dataIn);
    }
    info.setBrokerPath(value);
  } else {
    info.setBrokerPath(null);
  }
  info.setBrokerMasterConnector(dataIn.readBoolean());
  info.setManageable(dataIn.readBoolean());
  info.setClientMaster(dataIn.readBoolean());
}
origin: org.apache.activemq/activemq-all

/**
 * Un-marshal an object instance from the data input stream
 * 
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException {
  super.looseUnmarshal(wireFormat, o, dataIn);
  ConnectionInfo info = (ConnectionInfo)o;
  info.setConnectionId((org.apache.activemq.command.ConnectionId)looseUnmarsalCachedObject(wireFormat,
                                               dataIn));
  info.setClientId(looseUnmarshalString(dataIn));
  info.setPassword(looseUnmarshalString(dataIn));
  info.setUserName(looseUnmarshalString(dataIn));
  if (dataIn.readBoolean()) {
    short size = dataIn.readShort();
    org.apache.activemq.command.BrokerId value[] = new org.apache.activemq.command.BrokerId[size];
    for (int i = 0; i < size; i++) {
      value[i] = (org.apache.activemq.command.BrokerId)looseUnmarsalNestedObject(wireFormat, dataIn);
    }
    info.setBrokerPath(value);
  } else {
    info.setBrokerPath(null);
  }
  info.setBrokerMasterConnector(dataIn.readBoolean());
  info.setManageable(dataIn.readBoolean());
  info.setClientMaster(dataIn.readBoolean());
}
origin: org.apache.activemq/activemq-osgi

/**
 * Un-marshal an object instance from the data input stream
 * 
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException {
  super.looseUnmarshal(wireFormat, o, dataIn);
  ConnectionInfo info = (ConnectionInfo)o;
  info.setConnectionId((org.apache.activemq.command.ConnectionId)looseUnmarsalCachedObject(wireFormat,
                                               dataIn));
  info.setClientId(looseUnmarshalString(dataIn));
  info.setPassword(looseUnmarshalString(dataIn));
  info.setUserName(looseUnmarshalString(dataIn));
  if (dataIn.readBoolean()) {
    short size = dataIn.readShort();
    org.apache.activemq.command.BrokerId value[] = new org.apache.activemq.command.BrokerId[size];
    for (int i = 0; i < size; i++) {
      value[i] = (org.apache.activemq.command.BrokerId)looseUnmarsalNestedObject(wireFormat, dataIn);
    }
    info.setBrokerPath(value);
  } else {
    info.setBrokerPath(null);
  }
  info.setBrokerMasterConnector(dataIn.readBoolean());
  info.setManageable(dataIn.readBoolean());
  info.setClientMaster(dataIn.readBoolean());
}
origin: pierre/meteo

/**
 * Un-marshal an object instance from the data input stream
 * 
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException {
  super.looseUnmarshal(wireFormat, o, dataIn);
  ConnectionInfo info = (ConnectionInfo)o;
  info.setConnectionId((org.apache.activemq.command.ConnectionId)looseUnmarsalCachedObject(wireFormat,
                                               dataIn));
  info.setClientId(looseUnmarshalString(dataIn));
  info.setPassword(looseUnmarshalString(dataIn));
  info.setUserName(looseUnmarshalString(dataIn));
  if (dataIn.readBoolean()) {
    short size = dataIn.readShort();
    org.apache.activemq.command.BrokerId value[] = new org.apache.activemq.command.BrokerId[size];
    for (int i = 0; i < size; i++) {
      value[i] = (org.apache.activemq.command.BrokerId)looseUnmarsalNestedObject(wireFormat, dataIn);
    }
    info.setBrokerPath(value);
  } else {
    info.setBrokerPath(null);
  }
  info.setBrokerMasterConnector(dataIn.readBoolean());
  info.setManageable(dataIn.readBoolean());
  info.setClientMaster(dataIn.readBoolean());
}
org.apache.activemq.openwire.v3ConnectionInfoMarshallerlooseUnmarsalNestedObject

Popular methods of ConnectionInfoMarshaller

  • looseMarshalCachedObject
  • looseMarshalObjectArray
  • looseMarshalString
  • looseUnmarsalCachedObject
  • looseUnmarshalString
  • tightMarshalCachedObject1
  • tightMarshalCachedObject2
  • tightMarshalObjectArray1
  • tightMarshalObjectArray2
  • tightMarshalString1
  • tightMarshalString2
  • tightUnmarsalCachedObject
  • tightMarshalString2,
  • tightUnmarsalCachedObject,
  • tightUnmarsalNestedObject,
  • tightUnmarshalString

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 17 PhpStorm Plugins
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