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

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

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

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.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 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 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.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: 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,
    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);
}
org.apache.mina.filter.codec.textlineTextLineEncoder<init>

Javadoc

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

Popular methods of TextLineEncoder

  • getMaxLineLength
    Returns the allowed maximum size of the encoded line. If the size of the encoded line exceeds this v
  • setMaxLineLength
    Sets the allowed maximum size of the encoded line. If the size of the encoded line exceeds this valu
  • encode

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JComboBox (javax.swing)
  • Best plugins for Eclipse
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