@Converter(generateLoader=true) public final class IOConverter extends Object
Modifier and Type | Method and Description |
---|---|
static ByteBuffer |
covertToByteBuffer(InputStream is) |
static byte[] |
toByteArray(BufferedReader reader,
org.apache.camel.Exchange exchange) |
static byte[] |
toByteArray(ByteArrayOutputStream os) |
static byte[] |
toByteArray(File file) |
static byte[] |
toByteArray(Reader reader,
org.apache.camel.Exchange exchange) |
static byte[] |
toByteArray(String value,
org.apache.camel.Exchange exchange) |
static byte[] |
toBytes(InputStream stream) |
static File |
toFile(String name) |
static InputStream |
toInputStream(BufferedReader buffer,
org.apache.camel.Exchange exchange) |
static InputStream |
toInputStream(byte[] data) |
static InputStream |
toInputStream(ByteArrayOutputStream os) |
static InputStream |
toInputStream(File file) |
static InputStream |
toInputStream(Stream stream,
org.apache.camel.Exchange exchange) |
static InputStream |
toInputStream(StringBuffer buffer,
org.apache.camel.Exchange exchange) |
static InputStream |
toInputStream(StringBuilder builder,
org.apache.camel.Exchange exchange) |
static InputStream |
toInputStream(String text,
org.apache.camel.Exchange exchange) |
static InputStream |
toInputStream(URL url) |
static ObjectInput |
toObjectInput(InputStream stream,
org.apache.camel.Exchange exchange) |
static ObjectOutput |
toObjectOutput(OutputStream stream) |
static OutputStream |
toOutputStream(File file) |
static Properties |
toProperties(File file) |
static Properties |
toProperties(InputStream is) |
static Properties |
toProperties(Reader reader) |
static Reader |
toReader(byte[] data,
org.apache.camel.Exchange exchange) |
static BufferedReader |
toReader(File file,
org.apache.camel.Exchange exchange) |
static Reader |
toReader(InputStream in,
org.apache.camel.Exchange exchange) |
static StringReader |
toReader(String text) |
static String |
toString(BufferedReader reader) |
static String |
toString(byte[] data,
org.apache.camel.Exchange exchange) |
static String |
toString(ByteArrayOutputStream os,
org.apache.camel.Exchange exchange) |
static String |
toString(File file,
org.apache.camel.Exchange exchange) |
static String |
toString(InputStream in,
org.apache.camel.Exchange exchange) |
static String |
toString(Reader reader) |
static String |
toString(URL url,
org.apache.camel.Exchange exchange) |
static BufferedWriter |
toWriter(File file,
org.apache.camel.Exchange exchange) |
static Writer |
toWriter(OutputStream out,
org.apache.camel.Exchange exchange) |
@Converter public static InputStream toInputStream(Stream stream, org.apache.camel.Exchange exchange)
@Converter public static InputStream toInputStream(URL url) throws IOException
IOException
@Converter public static InputStream toInputStream(File file) throws IOException
IOException
@Converter public static BufferedReader toReader(File file, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static OutputStream toOutputStream(File file) throws FileNotFoundException
FileNotFoundException
@Converter public static BufferedWriter toWriter(File file, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static Reader toReader(InputStream in, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static Reader toReader(byte[] data, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static Writer toWriter(OutputStream out, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static StringReader toReader(String text)
@Converter public static InputStream toInputStream(String text, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static InputStream toInputStream(StringBuffer buffer, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static InputStream toInputStream(StringBuilder builder, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static InputStream toInputStream(BufferedReader buffer, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static String toString(byte[] data, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static String toString(File file, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static byte[] toByteArray(File file) throws IOException
IOException
@Converter public static byte[] toByteArray(Reader reader, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static String toString(URL url, org.apache.camel.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
@Converter public static byte[] toByteArray(BufferedReader reader, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static byte[] toByteArray(String value, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static String toString(InputStream in, org.apache.camel.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, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static byte[] toBytes(InputStream stream) throws IOException
IOException
@Converter public static byte[] toByteArray(ByteArrayOutputStream os)
@Converter public static ByteBuffer covertToByteBuffer(InputStream is) throws IOException
IOException
@Converter public static String toString(ByteArrayOutputStream os, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static InputStream toInputStream(ByteArrayOutputStream os)
@Converter public static Properties toProperties(File file) throws IOException
IOException
@Converter public static Properties toProperties(InputStream is) throws IOException
IOException
@Converter public static Properties toProperties(Reader reader) throws IOException
IOException
Apache Camel