camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: camel-mina, missing NUL line delimiter?
Date Thu, 29 Jan 2009 16:08:08 GMT
I can find these in the mina source

public class LineDelimiter {
     * the line delimiter constant of the current O/S.
    public static final LineDelimiter DEFAULT;

    static {
        ByteArrayOutputStream bout = new ByteArrayOutputStream();
        PrintWriter out = new PrintWriter(bout);
        DEFAULT = new LineDelimiter(new String(bout.toByteArray()));

     * A special line delimiter which is used for auto-detection of
     * EOL in {@link TextLineDecoder}.  If this delimiter is used,
     * {@link TextLineDecoder} will consider both  <tt>'\r'</tt> and
     * <tt>'\n'</tt> as a delimiter.
    public static final LineDelimiter AUTO = new LineDelimiter("");

     * The line delimiter constant of UNIX (<tt>"\n"</tt>)
    public static final LineDelimiter UNIX = new LineDelimiter("\n");

     * The line delimiter constant of MS Windows/DOS (<tt>"\r\n"</tt>)
    public static final LineDelimiter WINDOWS = new LineDelimiter("\r\n");

     * The line delimiter constant of Mac OS (<tt>"\r"</tt>)
    public static final LineDelimiter MAC = new LineDelimiter("\r");

They have DEFAULT that we current dont have in Camel, buts its like
not setting any line delimiter in Camel.

So where is the NULL coming from? Where do you see it?

On Thu, Jan 29, 2009 at 4:59 PM, ejot <> wrote:
> From the docs the line delimiters AUTO, MAC, WINDOWS and UNIX are
> supported... but mina has another one, NUL (necessary when using for example
> Flash). Is there some other way to configure the delimiter when creating the
> route?
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Apache Camel Committer

Open Source Integration:

View raw message