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

How to use
looseUnmarshalString
method
in
org.apache.activemq.openwire.v2.ConnectionInfoMarshaller

Best Java code snippets using org.apache.activemq.openwire.v2.ConnectionInfoMarshaller.looseUnmarshalString (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: 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());
}
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());
}
org.apache.activemq.openwire.v2ConnectionInfoMarshallerlooseUnmarshalString

Popular methods of ConnectionInfoMarshaller

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

Popular in Java

  • Start an intent from android
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 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