Class SyncDetector

  extended by org.mbari.siam.devices.microStrain.SyncDetector

public class SyncDetector
extends java.lang.Object

SynchDetector determines when a specified synch pattern of bytes has been detected in a byte stream

Method Summary
 boolean foundSync(byte b)
          Return true if specified byte completes the sync pattern
 byte[] pattern()
          Return pattern
 void reset()
          Reset the detector
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public boolean foundSync(byte b)
Return true if specified byte completes the sync pattern


public void reset()
Reset the detector


public byte[] pattern()
Return pattern

Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.