Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| KIE API 6.1.0.Beta1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.kie.api.marshalling
Interface Marshaller

    public interface Marshaller

Method Summary
`MarshallingConfiguration` | `getMarshallingConfiguration()` Returns the MarshallingConfiguration object for this marshaller
`void` | `marshall(OutputStream stream, KieSession ksession)` Marshalls the given StatefulKnowledgeSession into the provided OutputStream
`KieSession` | `unmarshall(InputStream stream)` Creates StatefulKnowledgeSession using default KnowledgeSessionConfiguration and Environment.
`void` | `unmarshall(InputStream stream, KieSession ksession)` Unmarshall the stream into the StatefulKnowledgeSession.
`KieSession` | `unmarshall(InputStream stream, KieSessionConfiguration config, Environment environment)` Creates StatefulKnowledgeSession using the given KnowledgeSessionConfiguration and Environment.

Method Detail

### marshall

    void marshall(OutputStream stream,
                  KieSession ksession)
                  throws IOException

  Marshalls the given StatefulKnowledgeSession into the provided OutputStream

  Parameters:
    `stream` -
    `ksession` -
  Throws:
    `IOException`

### unmarshall

    KieSession unmarshall(InputStream stream)
                          throws IOException,
                                 ClassNotFoundException

  Creates StatefulKnowledgeSession using default KnowledgeSessionConfiguration and Environment. It will then unmarshall the stream into the session. Either KnowledgeSessionConfiguration or Environment may be null and it will use the default.

  Parameters:
    `stream` -
  Returns:
  Throws:
    `IOException`
    `ClassNotFoundException`

### unmarshall

    KieSession unmarshall(InputStream stream,
                          KieSessionConfiguration config,
                          Environment environment)
                          throws IOException,
                                 ClassNotFoundException

  Creates StatefulKnowledgeSession using the given KnowledgeSessionConfiguration and Environment. It will then unmarshall the stream into the session. Either KnowledgeSessionConfiguration or Environment may be null and it will use the default.

  Parameters:
    `stream` -
    `config` -
    `environment` -
  Returns:
  Throws:
    `IOException`
    `ClassNotFoundException`

### unmarshall

    void unmarshall(InputStream stream,
                    KieSession ksession)
                    throws IOException,
                           ClassNotFoundException

  Unmarshall the stream into the StatefulKnowledgeSession. All existing state in the session will be lost.

  Parameters:
    `stream` -
    `ksession` -
  Throws:
    `IOException`
    `ClassNotFoundException`

### getMarshallingConfiguration

    MarshallingConfiguration getMarshallingConfiguration()

  Returns the MarshallingConfiguration object for this marshaller

  Returns:

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| KIE API 6.1.0.Beta1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.