Tabnine Logo
TextLineDecoder.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.mina.filter.codec.textline.TextLineDecoder
constructor

Best Java code snippets using org.apache.mina.filter.codec.textline.TextLineDecoder.<init> (Showing top 11 results out of 315)

origin: org.apache.directory.api/api-ldap-client-all

/**
 * Creates a new instance with the specified {@link Charset}.  The
 * encoder uses a UNIX {@link LineDelimiter} and the decoder uses
 * the AUTO {@link LineDelimiter}.
 *
 * @param charset The charset to use in the encoding and decoding
 */
public TextLineCodecFactory(Charset charset) {
  encoder = new TextLineEncoder(charset, LineDelimiter.UNIX);
  decoder = new TextLineDecoder(charset, LineDelimiter.AUTO);
}
origin: org.apache.mina/mina-core

/**
 * Creates a new instance with the specified {@link Charset}.  The
 * encoder uses a UNIX {@link LineDelimiter} and the decoder uses
 * the AUTO {@link LineDelimiter}.
 *
 * @param charset The charset to use in the encoding and decoding
 */
public TextLineCodecFactory(Charset charset) {
  encoder = new TextLineEncoder(charset, LineDelimiter.UNIX);
  decoder = new TextLineDecoder(charset, LineDelimiter.AUTO);
}
origin: org.apache.mina/mina-core

/**
 * Creates a new instance of TextLineCodecFactory.  This constructor
 * provides more flexibility for the developer.
 *
 * @param charset
 *  The charset to use in the encoding and decoding
 * @param encodingDelimiter
 *  The line delimeter for the encoder
 * @param decodingDelimiter
 *  The line delimeter for the decoder
 */
public TextLineCodecFactory(Charset charset, LineDelimiter encodingDelimiter, LineDelimiter decodingDelimiter) {
  encoder = new TextLineEncoder(charset, encodingDelimiter);
  decoder = new TextLineDecoder(charset, decodingDelimiter);
}
origin: org.apache.directory.mina/mina-core

/**
 * Creates a new instance with the specified {@link Charset}.
 */
public TextLineCodecFactory( Charset charset )
{
  encoder = new TextLineEncoder( charset, LineDelimiter.UNIX );
  decoder = new TextLineDecoder( charset, LineDelimiter.AUTO );
}
origin: org.apache.mina/mina-core

/**
 * Creates a new instance of TextLineCodecFactory.  This constructor
 * provides more flexibility for the developer.
 *
 * @param charset
 *  The charset to use in the encoding and decoding
 * @param encodingDelimiter
 *  The line delimeter for the encoder
 * @param decodingDelimiter
 *  The line delimeter for the decoder
 */
public TextLineCodecFactory(Charset charset, String encodingDelimiter, String decodingDelimiter) {
  encoder = new TextLineEncoder(charset, encodingDelimiter);
  decoder = new TextLineDecoder(charset, decodingDelimiter);
}
origin: kaazing/gateway

/**
 * Creates a new instance with the specified {@link Charset}.  The
 * encoder uses a UNIX {@link LineDelimiter} and the decoder uses
 * the AUTO {@link LineDelimiter}.
 *
 * @param charset
 *  The charset to use in the encoding and decoding
 */
public TextLineCodecFactory(Charset charset) {
  encoder = new TextLineEncoder(charset, LineDelimiter.UNIX);
  decoder = new TextLineDecoder(charset, LineDelimiter.AUTO);
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Creates a new instance of TextLineCodecFactory.  This constructor
 * provides more flexibility for the developer.
 *
 * @param charset
 *  The charset to use in the encoding and decoding
 * @param encodingDelimiter
 *  The line delimeter for the encoder
 * @param decodingDelimiter
 *  The line delimeter for the decoder
 */
public TextLineCodecFactory(Charset charset, LineDelimiter encodingDelimiter, LineDelimiter decodingDelimiter) {
  encoder = new TextLineEncoder(charset, encodingDelimiter);
  decoder = new TextLineDecoder(charset, decodingDelimiter);
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Creates a new instance of TextLineCodecFactory.  This constructor
 * provides more flexibility for the developer.
 *
 * @param charset
 *  The charset to use in the encoding and decoding
 * @param encodingDelimiter
 *  The line delimeter for the encoder
 * @param decodingDelimiter
 *  The line delimeter for the decoder
 */
public TextLineCodecFactory(Charset charset, String encodingDelimiter, String decodingDelimiter) {
  encoder = new TextLineEncoder(charset, encodingDelimiter);
  decoder = new TextLineDecoder(charset, decodingDelimiter);
}
origin: kaazing/gateway

/**
 * Creates a new instance of TextLineCodecFactory.  This constructor
 * provides more flexibility for the developer.
 *
 * @param charset
 *  The charset to use in the encoding and decoding
 * @param encodingDelimiter
 *  The line delimeter for the encoder
 * @param decodingDelimiter
 *  The line delimeter for the decoder
 */
public TextLineCodecFactory(Charset charset,
    LineDelimiter encodingDelimiter, LineDelimiter decodingDelimiter) {
  encoder = new TextLineEncoder(charset, encodingDelimiter);
  decoder = new TextLineDecoder(charset, decodingDelimiter);
}
origin: kaazing/gateway

/**
 * Creates a new instance of TextLineCodecFactory.  This constructor
 * provides more flexibility for the developer.
 *
 * @param charset
 *  The charset to use in the encoding and decoding
 * @param encodingDelimiter
 *  The line delimeter for the encoder
 * @param decodingDelimiter
 *  The line delimeter for the decoder
 */
public TextLineCodecFactory(Charset charset,
    String encodingDelimiter, String decodingDelimiter) {
  encoder = new TextLineEncoder(charset, encodingDelimiter);
  decoder = new TextLineDecoder(charset, decodingDelimiter);
}
origin: org.parallelj/parallelj-launching

/**
 * Default constructor
 * 
 * @param host
 * @param port
 */
public TcpIpServer(final String host, final int port) {
  this.host = host;
  this.port = port;
  
  // Initialize the acceptor
  this.acceptor.getFilterChain().addLast("logger", new LoggingFilter());
  this.acceptor.getFilterChain().addLast(
      "codec",
      new ProtocolCodecFilter( 
          new TcpIpTextLineEncoder(Charset.forName(ENCODING)), 
          new TextLineDecoder(Charset.forName(ENCODING))
          ));
  this.acceptor.getSessionConfig().setReadBufferSize(BUFFER_READER_SIZE);
  this.acceptor.getSessionConfig().setIdleTime(IdleStatus.BOTH_IDLE, IDLE_TIME);
}

org.apache.mina.filter.codec.textlineTextLineDecoder<init>

Javadoc

Creates a new instance with the current default Charsetand LineDelimiter#AUTO delimiter.

Popular methods of TextLineDecoder

  • decodeAuto
    Decode a line using the default delimiter on the current system
  • decodeNormal
    Decode a line using the delimiter defined by the caller
  • getContext
  • 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
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • 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.
  • Best IntelliJ plugins
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