
## __init__ {#io.RawIOBase}

Initializes a new instance of the [`StreamContainer`](/cad/python-net/aspose.cad/streamcontainer) class.



```python
def __init__(self, stream):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| stream | io.RawIOBase | The stream. |


## __init__ {#io.RawIOBase-bool}

Initializes a new instance of the [`StreamContainer`](/cad/python-net/aspose.cad/streamcontainer) class.



```python
def __init__(self, stream, dispose_stream):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| stream | io.RawIOBase | The data stream. |
| dispose_stream | bool | if set to `true` the stream will be disposed when container is disposed. |



### See Also
* module [`aspose.cad`](../../)
* class [`StreamContainer`](/cad/python-net/aspose.cad/streamcontainer)
