Tabnine Logo
TextLineDecoder.getContext
Code IndexAdd Tabnine to your IDE (free)

How to use
getContext
method
in
org.apache.mina.filter.codec.textline.TextLineDecoder

Best Java code snippets using org.apache.mina.filter.codec.textline.TextLineDecoder.getContext (Showing top 4 results out of 315)

origin: org.apache.mina/mina-core

/**
 * {@inheritDoc}
 */
@Override
public void decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) throws Exception {
  Context ctx = getContext(session);
  if (LineDelimiter.AUTO.equals(delimiter)) {
    decodeAuto(ctx, session, in, out);
  } else {
    decodeNormal(ctx, session, in, out);
  }
}
origin: kaazing/gateway

public void decode(IoSession session, IoBuffer in,
    ProtocolDecoderOutput out) throws Exception {
  Context ctx = getContext(session);
  if (LineDelimiter.AUTO.equals(delimiter)) {
    decodeAuto(ctx, session, in, out);
  } else {
    decodeNormal(ctx, session, in, out);
  }
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * {@inheritDoc}
 */
@Override
public void decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) throws Exception {
  Context ctx = getContext(session);
  if (LineDelimiter.AUTO.equals(delimiter)) {
    decodeAuto(ctx, session, in, out);
  } else {
    decodeNormal(ctx, session, in, out);
  }
}
origin: org.apache.directory.mina/mina-core

public void decode( IoSession session, ByteBuffer in,
          ProtocolDecoderOutput out )
    throws Exception
{
  Context ctx = getContext(session);
  
  if( LineDelimiter.AUTO.equals( delimiter ) )
  {
    ctx.setMatchCount(
        decodeAuto(
            in,
            ctx.getBuffer(),
            ctx.getMatchCount(),
            ctx.getDecoder(),
            out ) );
  }
  else
  {
    ctx.setMatchCount(
        decodeNormal(
            in,
            ctx.getBuffer(),
            ctx.getMatchCount(),
            ctx.getDecoder(),
            out ) );
  }
}
org.apache.mina.filter.codec.textlineTextLineDecodergetContext

Popular methods of TextLineDecoder

  • <init>
    Creates a new instance with the current default Charsetand the specified delimiter.
  • decodeAuto
    Decode a line using the default delimiter on the current system
  • decodeNormal
    Decode a line using the delimiter defined by the caller
  • getMaxLineLength
  • setMaxLineLength
    Sets the allowed maximum size of the line to be decoded. If the size of the line to be decoded excee
  • writeText
    By default, this method propagates the decoded line of text to ProtocolDecoderOutput#write(Object).

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • CodeWhisperer 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