Example #1
0
 def __init__(
     self,
     stream: Union['IO.StreamHandle', dict, None] = None,
 ):
     if isinstance(stream, dict):
         stream = IO.StreamHandle(**stream)
     self.stream = stream
Example #2
0
 def __init__(
     self,
     stream: Union['IO.StreamHandle', dict, None] = None,
     streamCompression: Union['StreamCompression', dict, None] = None,
 ):
     if isinstance(stream, dict):
         stream = IO.StreamHandle(**stream)
     self.stream = stream
     if isinstance(streamCompression, dict):
         streamCompression = StreamCompression(**streamCompression)
     self.streamCompression = streamCompression
Example #3
0
 def __init__(
     self,
     stream: Union['IO.StreamHandle', dict, None] = None,
     traceFormat: Union['StreamFormat', dict, None] = None,
     streamCompression: Union['StreamCompression', dict, None] = None,
 ):
     if isinstance(stream, dict):
         stream = IO.StreamHandle(**stream)
     self.stream = stream
     if isinstance(traceFormat, dict):
         traceFormat = StreamFormat(**traceFormat)
     self.traceFormat = traceFormat
     if isinstance(streamCompression, dict):
         streamCompression = StreamCompression(**streamCompression)
     self.streamCompression = streamCompression
Example #4
0
 def __init__(
     self,
     dataLossOccurred: Union['bool', dict],
     stream: Union['IO.StreamHandle', dict, None] = None,
     traceFormat: Union['StreamFormat', dict, None] = None,
     streamCompression: Union['StreamCompression', dict, None] = None,
 ):
     if isinstance(dataLossOccurred, dict):
         dataLossOccurred = bool(**dataLossOccurred)
     self.dataLossOccurred = dataLossOccurred
     if isinstance(stream, dict):
         stream = IO.StreamHandle(**stream)
     self.stream = stream
     if isinstance(traceFormat, dict):
         traceFormat = StreamFormat(**traceFormat)
     self.traceFormat = traceFormat
     if isinstance(streamCompression, dict):
         streamCompression = StreamCompression(**streamCompression)
     self.streamCompression = streamCompression