예제 #1
0
 /// <summary>
 /// Opens the parser and parses the <see cref="ContainerRecord"/>.
 /// </summary>
 /// <param name="stream">The stream containing the PQDIF file data.</param>
 /// <param name="leaveOpen">True if the stream should be closed when the parser is closed; false otherwise.</param>
 /// <exception cref="ArgumentNullException"><paramref name="stream"/> is null.</exception>
 /// <exception cref="InvalidOperationException"><paramref name="stream"/> is not both readable and seekable.</exception>
 /// <exception cref="NotSupportedException">An unsupported compression mode was defined in the PQDIF file.</exception>
 public void Open(Stream stream, bool leaveOpen = false)
 {
     m_physicalParser.Open(stream, leaveOpen);
     m_containerRecord = ContainerRecord.CreateContainerRecord(m_physicalParser.NextRecord());
     m_physicalParser.CompressionAlgorithm = m_containerRecord.CompressionAlgorithm;
     m_physicalParser.CompressionStyle     = m_containerRecord.CompressionStyle;
 }
예제 #2
0
 /// <summary>
 /// Opens the parser and parses the <see cref="ContainerRecord"/>.
 /// </summary>
 /// <exception cref="InvalidOperationException"><see cref="FilePath"/> has not been defined.</exception>
 /// <exception cref="NotSupportedException">An unsupported compression mode was defined in the PQDIF file.</exception>
 public void Open()
 {
     m_physicalParser.Open();
     m_containerRecord = ContainerRecord.CreateContainerRecord(m_physicalParser.NextRecord());
     m_physicalParser.CompressionAlgorithm = m_containerRecord.CompressionAlgorithm;
     m_physicalParser.CompressionStyle     = m_containerRecord.CompressionStyle;
 }