01: /*
02: * $Id: WireFormat.java 10933 2008-02-21 21:20:58Z acooke $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.api.transformer.wire;
12:
13: import org.mule.api.MuleException;
14:
15: import java.io.InputStream;
16: import java.io.OutputStream;
17:
18: public interface WireFormat {
19: Object read(InputStream is) throws MuleException;
20:
21: void write(OutputStream out, Object o, String encoding)
22: throws MuleException;
23:
24: void setTransferObjectClass(Class clazz);
25: }
|