Package org.kie.api.marshalling
Interface Marshaller
public interface Marshaller
-
Method Summary
Modifier and TypeMethodDescriptionvoidmarshall(OutputStream stream, KieSession ksession) Marshalls the given KieSession into the provided OutputStreamunmarshall(InputStream stream) Creates KieSession using default KieSessionConfiguration and Environment.voidunmarshall(InputStream stream, KieSession ksession) Unmarshall the stream into the KieSession.unmarshall(InputStream stream, KieSessionConfiguration config, Environment environment) Creates KieSession using the given KieSessionConfiguration and Environment.
-
Method Details
-
marshall
Marshalls the given KieSession into the provided OutputStream- Parameters:
stream-ksession-- Throws:
IOException
-
unmarshall
Creates KieSession using default KieSessionConfiguration and Environment. It will then unmarshall the stream into the session. Either KieSessionConfiguration or Environment may be null and it will use the default.- Parameters:
stream-- Returns:
- unmarshlled KieSession
- Throws:
IOExceptionClassNotFoundException
-
unmarshall
KieSession unmarshall(InputStream stream, KieSessionConfiguration config, Environment environment) throws IOException, ClassNotFoundException Creates KieSession using the given KieSessionConfiguration and Environment. It will then unmarshall the stream into the session. Either KieSessionConfiguration or Environment may be null and it will use the default.- Parameters:
stream-config-environment-- Returns:
- unmarshalled KieSession
- Throws:
IOExceptionClassNotFoundException
-
unmarshall
Unmarshall the stream into the KieSession. All existing state in the session will be lost.- Parameters:
stream-ksession-- Throws:
IOExceptionClassNotFoundException
-
getMarshallingConfiguration
MarshallingConfiguration getMarshallingConfiguration()- Returns:
- the
MarshallingConfigurationobject for this marshaller.
-