2
* JBoss, Home of Professional Open Source
3
* Copyright 2006, JBoss Inc., and individual contributors as indicated
4
* by the @authors tag. See the copyright.txt in the distribution for a
5
* full listing of individual contributors.
7
* This is free software; you can redistribute it and/or modify it
8
* under the terms of the GNU Lesser General Public License as
9
* published by the Free Software Foundation; either version 2.1 of
10
* the License, or (at your option) any later version.
12
* This software is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this software; if not, write to the Free
19
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
24
* Created on Jan 26, 2007
26
package org.jboss.remoting.marshal;
28
import java.io.IOException;
29
import java.io.InputStream;
34
* A PreferedStreamUnMarshaller can create from a raw InputStream the
35
* particular InputStream it prefers to use
37
* @author <a href="mailto:ron.sigal@jboss.com">Ron Sigal</a>
38
* @version $Revision: 2000 $
40
* Copyright (c) Jan 26, 2007
44
public interface PreferredStreamUnMarshaller extends SerialUnMarshaller
47
* An application that calls getMarshallingStream() should provide a
48
* basic InpputStream, e.g., SocketIntputStream, which can be wrapped
49
* to provide the facilities desired by the PreferredStreamUnMarshaller.
51
* @param inputStream a raw IntputStream
52
* @return the InputStream to be used for marshalling
53
* @throws IOException if unable to create InputStream
55
InputStream getMarshallingStream(InputStream inputStream) throws IOException;
58
* An application that calls getMarshallingStream() should provide a
59
* basic InpputStream, e.g., SocketIntputStream, which can be wrapped
60
* to provide the facilities desired by the PreferredStreamUnMarshaller.
62
* @param inputStream a raw IntputStream
63
* @param config a Map with configuration information (e.g., serialization type)
64
* @return the InputStream to be used for marshalling
65
* @throws IOException if unable to create InputStream
67
InputStream getMarshallingStream(InputStream inputStream, Map config) throws IOException;
b'\\ No newline at end of file'