H
Harald Kirsch
In
http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html
under 3.10.6 the escape sequences allowed
in a Java String literal are described.
When using a String literal in Java source
code, the compiler does the conversion for
me.
Now suppose I get character data, e.g. from
a file, and I want to perform the exact same
escape processing as the compiler would do.
Is there a ready made method somewhere
available to do this?
Note: don't waste your time by telling me
how I could do this myself. I can do
that, but using something "official" would
be the preferred solution.
Thanks,
Harald.
http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html
under 3.10.6 the escape sequences allowed
in a Java String literal are described.
When using a String literal in Java source
code, the compiler does the conversion for
me.
Now suppose I get character data, e.g. from
a file, and I want to perform the exact same
escape processing as the compiler would do.
Is there a ready made method somewhere
available to do this?
Note: don't waste your time by telling me
how I could do this myself. I can do
that, but using something "official" would
be the preferred solution.
Thanks,
Harald.