|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.converter.IOConverter
@Converter public final class IOConverter
Some core java.io based Type Converters
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
@Converter public static InputStream toInputStream(URL url) throws IOException
IOException
@Converter public static InputStream toInputStream(File file) throws IOException
IOException
@Deprecated public static BufferedReader toReader(File file) throws IOException
IOException
@Converter public static BufferedReader toReader(File file, Exchange exchange) throws IOException
IOException
@Converter public static File toFile(String name) throws FileNotFoundException
FileNotFoundException
@Converter public static OutputStream toOutputStream(File file) throws FileNotFoundException
FileNotFoundException
@Deprecated public static BufferedWriter toWriter(File file) throws IOException
IOException
@Converter public static BufferedWriter toWriter(File file, Exchange exchange) throws IOException
IOException
@Deprecated public static Reader toReader(InputStream in) throws IOException
IOException
@Converter public static Reader toReader(InputStream in, Exchange exchange) throws IOException
IOException
@Deprecated public static Writer toWriter(OutputStream out) throws IOException
IOException
@Converter @Deprecated public static Writer toWriter(OutputStream out, Exchange exchange) throws IOException
IOException
@Converter public static StringReader toReader(String text)
@Deprecated public static InputStream toInputStream(String text) throws IOException
IOException
@Converter public static InputStream toInputStream(String text, Exchange exchange) throws IOException
IOException
@Deprecated public static InputStream toInputStream(BufferedReader buffer) throws IOException
IOException
@Converter public static InputStream toInputStream(BufferedReader buffer, Exchange exchange) throws IOException
IOException
@Deprecated public static String toString(byte[] data) throws IOException
IOException
@Converter public static String toString(byte[] data, Exchange exchange) throws IOException
IOException
@Deprecated public static String toString(File file) throws IOException
IOException
@Converter public static String toString(File file, Exchange exchange) throws IOException
IOException
@Converter public static byte[] toByteArray(File file) throws IOException
IOException
@Deprecated public static byte[] toByteArray(Reader reader) throws IOException
IOException
@Converter public static byte[] toByteArray(Reader reader, Exchange exchange) throws IOException
IOException
@Deprecated public static String toString(URL url) throws IOException
IOException
@Converter public static String toString(URL url, Exchange exchange) throws IOException
IOException
@Converter public static String toString(Reader reader) throws IOException
IOException
@Converter public static String toString(BufferedReader reader) throws IOException
IOException
@Deprecated public static byte[] toByteArray(BufferedReader reader) throws IOException
IOException
@Converter public static byte[] toByteArray(BufferedReader reader, Exchange exchange) throws IOException
IOException
@Deprecated public static byte[] toByteArray(String value) throws IOException
IOException
@Converter public static byte[] toByteArray(String value, Exchange exchange) throws IOException
IOException
@Deprecated public static String toString(InputStream in) throws IOException
IOException
@Converter public static String toString(InputStream in, Exchange exchange) throws IOException
IOException
@Converter public static InputStream toInputStream(byte[] data)
@Converter public static ObjectOutput toObjectOutput(OutputStream stream) throws IOException
IOException
@Converter public static ObjectInput toObjectInput(InputStream stream) throws IOException
IOException
@Converter public static byte[] toBytes(InputStream stream) throws IOException
IOException
@Converter public static byte[] toByteArray(ByteArrayOutputStream os)
@Deprecated public static String toString(ByteArrayOutputStream os) throws IOException
IOException
@Converter public static String toString(ByteArrayOutputStream os, Exchange exchange) throws IOException
IOException
@Converter public static InputStream toInputStream(ByteArrayOutputStream os)
public static String getCharsetName(Exchange exchange)
public static String getCharsetName(Exchange exchange, boolean useDefault)
Exchange.CHARSET_NAME
.
exchange
- the exchangeuseDefault
- should we fallback and use JVM default charset if no property existed?
public static String getDefaultCharsetName()
public static String normalizeCharset(String charset)
public static void validateCharset(String charset) throws UnsupportedCharsetException
UnsupportedCharsetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |