java.lang.Object
org.codice.alliance.video.stream.mpegts.netty.StartCode
All Implemented Interfaces:
io.netty.buffer.ByteBufProcessor, io.netty.util.ByteProcessor

public class StartCode extends Object implements io.netty.buffer.ByteBufProcessor
A start code is the byte sequence 0x00 0x00 0x01 0xXX, where XX is any byte value. When used with ByteBuf.forEachByte, this caller will get the index position of the last byte of the start code.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.netty.util.ByteProcessor

    io.netty.util.ByteProcessor.IndexNotOfProcessor, io.netty.util.ByteProcessor.IndexOfProcessor
  • Field Summary

    Fields inherited from interface io.netty.buffer.ByteBufProcessor

    FIND_CR, FIND_CRLF, FIND_LF, FIND_LINEAR_WHITESPACE, FIND_NON_CR, FIND_NON_CRLF, FIND_NON_LF, FIND_NON_LINEAR_WHITESPACE, FIND_NON_NUL, FIND_NUL

    Fields inherited from interface io.netty.util.ByteProcessor

    FIND_ASCII_SPACE, FIND_COMMA, FIND_SEMI_COLON
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
    process(byte currentByte)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StartCode

      public StartCode()
  • Method Details

    • init

      public void init()
    • process

      public boolean process(byte currentByte) throws Exception
      Specified by:
      process in interface io.netty.util.ByteProcessor
      Throws:
      Exception