com.h3c.of.sw.misc

## Class SharkReader

- java.lang.Object
- - com.h3c.of.sw.misc.SharkReader

-     public class SharkReader
      extends Object

  Utility class to read and decode openflow messages from a text version of a Wireshark packet capture.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SharkReader(String path)` Creates a reader that parses the specifieid wshex file.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<com.h3c.of.sw.misc.SharkReader.Frame>` | `getFrames()` Returns an unmodifiable view of the frames.
    `List<com.h3c.of.sw.misc.SharkReader.Source>` | `getSources()` Returns an unmodifiable view of the source bindings.
    `String` | `toDebugString()` Returns a multi-line string representation of this reader.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SharkReader

          public SharkReader(String path)

      Creates a reader that parses the specifieid wshex file.
      Parameters:
        `path` - path of the wshex file

  - ### Method Detail

    - #### toDebugString

          public String toDebugString()

      Returns a multi-line string representation of this reader.
      Returns:
        a multi-line string representation

    - #### getSources

          public List<com.h3c.of.sw.misc.SharkReader.Source> getSources()

      Returns an unmodifiable view of the source bindings.
      Returns:
        the source bindings

    - #### getFrames

          public List<com.h3c.of.sw.misc.SharkReader.Frame> getFrames()

      Returns an unmodifiable view of the frames.
      Returns:
        the frames

Copyright © 2014. All Rights Reserved.