Codota Logo
jadex.platform.service.message.transport.codecs
Code IndexAdd Codota to your IDE (free)

How to use jadex.platform.service.message.transport.codecs

Best Java code snippets using jadex.platform.service.message.transport.codecs (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: org.activecomponents.jadex/jadex-platform

/**
 *  Remove message codec type.
 *  @param codec The codec type.
 */
public IFuture<Void> removeMessageCodec(Class codec)
{
  codecfactory.removeCodec(codec);
  return IFuture.DONE;
}
 
origin: org.activecomponents.jadex/jadex-platform

/**
 *  Encode an object.
 *  @param obj The object.
 *  @throws IOException
 */
public Object encode(Object val, ClassLoader classloader, IEncodingContext context)
{
  return encodeBytes((byte[])val, classloader);
}
 
origin: net.sourceforge.jadex/jadex-platform

/**
 *  Get array of message codecs for codec ids.
 */
public ICodec[] getMessageCodecs(byte[] codecids)
{
  ICodec[] codecs = new ICodec[codecids.length];
  for(int i=0; i<codecs.length; i++)
  {
    codecs[i] = codecfactory.getCodec(codecids[i]);
  }
  return codecs;
}
 
origin: net.sourceforge.jadex/jadex-platform

/**
 *  Get the default codecs.
 *  @return The default codecs.
 */
public ICodec[] getDefaultCodecs()
{
  if(default_codecs==null)
  {
    synchronized(this)
    {
      if(default_codecs==null)
      {
        byte[] defids = getDefaultCodecIds();
        default_codecs = new ICodec[defids.length];
        for(int i=0; i<defids.length; i++)
        {
          default_codecs[i] = getCodec(defids[i]);
        }
      }
    }
  }
  
  return default_codecs;
}
 
origin: net.sourceforge.jadex/jadex-platform

/**
 *  Decode an object.
 *  @return The decoded object.
 *  @throws IOException
 */
public Object decode(Object bytes, ClassLoader classloader, IErrorReporter rep)
{
  return decodeBytes(bytes instanceof byte[] ? new ByteArrayInputStream((byte[])bytes) : (ByteArrayInputStream)bytes, classloader);
}
 
origin: net.sourceforge.jadex/jadex-platform

/**
 *  Get the codec ids.
 *  @return The codec ids.
 */
protected byte[] getCodecIds()
{
  return ms.getCodecFactory().getDefaultCodecIds();
}
 
origin: org.activecomponents.jadex/jadex-platform

/**
 *  Get the default codec ids.
 */
protected static byte[] getIds(Class[] default_codecs)
{
  byte[] ret = new byte[default_codecs.length];
  for(int i=0; i<ret.length; i++)
  {
    ret[i] = getCodecId(default_codecs[i]);
  }
  return ret;
}
 
origin: org.activecomponents.jadex/jadex-platform

/**
 *  Add message codec type.
 *  @param codec The codec type.
 */
public IFuture<Void> addMessageCodec(Class codec)
{
  codecfactory.addCodec(codec);
  return IFuture.DONE;
}
 
origin: org.activecomponents.jadex/jadex-platform

/**
 *  Get the default codecs.
 *  @return The default codecs.
 */
public ICodec[] getDefaultCodecs()
{
  if(default_codecs==null)
  {
    synchronized(this)
    {
      if(default_codecs==null)
      {
        byte[] defids = getDefaultCodecIds();
        default_codecs = new ICodec[defids.length];
        for(int i=0; i<defids.length; i++)
        {
          default_codecs[i] = getCodec(defids[i]);
        }
      }
    }
  }
  
  return default_codecs;
}
 
origin: net.sourceforge.jadex/jadex-platform

/**
 *  Decode bytes.
 *  @return The decoded bytes.
 *  @throws IOException
 */
public static byte[] decodeBytes(byte[] bytes, ClassLoader classloader)
{
  return decodeBytes(new ByteArrayInputStream(bytes), classloader);
}
 
origin: org.activecomponents.jadex/jadex-platform

/**
 *  Get the codec ids.
 *  @return The codec ids.
 */
protected byte[] getCodecIds()
{
  return ms.getCodecFactory().getDefaultCodecIds();
}
 
origin: net.sourceforge.jadex/jadex-platform

/**
 *  Remove message codec type.
 *  @param codec The codec type.
 */
public IFuture<Void> removeMessageCodec(Class codec)
{
  codecfactory.removeCodec(codec);
  return new Future(null);
}
 
origin: net.sourceforge.jadex/jadex-platform

/**
 *  Encode an object.
 *  @param obj The object.
 *  @throws IOException
 */
public Object encode(Object val, ClassLoader classloader, IEncodingContext context)
{
  return encodeBytes((byte[])val, classloader);
}
 
origin: org.activecomponents.jadex/jadex-platform

/**
 *  Get array of message codecs for codec ids.
 */
public ICodec[] getMessageCodecs(byte[] codecids)
{
  ICodec[] codecs = new ICodec[codecids.length];
  for(int i=0; i<codecs.length; i++)
  {
    codecs[i] = codecfactory.getCodec(codecids[i]);
  }
  return codecs;
}
 
origin: net.sourceforge.jadex/jadex-platform

/**
 *  Get the default codec ids.
 */
protected static byte[] getIds(Class[] default_codecs)
{
  byte[] ret = new byte[default_codecs.length];
  for(int i=0; i<ret.length; i++)
  {
    ret[i] = getCodecId(default_codecs[i]);
  }
  return ret;
}
 
origin: net.sourceforge.jadex/jadex-platform

/**
 *  Add message codec type.
 *  @param codec The codec type.
 */
public IFuture<Void> addMessageCodec(Class codec)
{
  codecfactory.addCodec(codec);
  return new Future(null);
}
 
origin: org.activecomponents.jadex/jadex-platform

/**
 *  Decode bytes.
 *  @return The decoded bytes.
 *  @throws IOException
 */
public static byte[] decodeBytes(byte[] bytes, ClassLoader classloader)
{
  return decodeBytes(new ByteArrayInputStream(bytes), classloader);
}
 
origin: org.activecomponents.jadex/jadex-platform

/**
 *  Get the codecs. 
 *  @return The codecs.
 */
protected ICodec[] getCodecs()
{
  return ms.getMessageCodecs(ms.getCodecFactory().getDefaultCodecIds());
}
 
origin: org.activecomponents.jadex/jadex-platform

/**
 *  Decode an object.
 *  @return The decoded object.
 *  @throws IOException
 */
public Object decode(Object bytes, ClassLoader classloader, IErrorReporter rep)
{
  return decodeBytes(bytes instanceof byte[] ? new ByteArrayInputStream((byte[])bytes) : (ByteArrayInputStream)bytes, classloader);
}
 
origin: net.sourceforge.jadex/jadex-platform

/**
 *  Get the codecs. 
 *  @return The codecs.
 */
protected ICodec[] getCodecs()
{
  return ms.getMessageCodecs(ms.getCodecFactory().getDefaultCodecIds());
}
 
jadex.platform.service.message.transport.codecs

Most used classes

  • CodecFactory
    The factory for codecs.
  • GZIPCodec
    Converts byte[] -> byte[] in both directions.
  • JadexBinaryCodec
    The Jadex Binary codec. Codec supports parallel calls of multiple concurrent clients (no method sync
  • NuggetsCodec
    The Nuggets XML codec. Codec supports parallel calls of multiple concurrent clients (no method synch
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