public static boolean isSegmented ( Name name , byte marker ) { return name . size ( ) > 0 && name . get ( - 1 ) . getValue ( ) . buf ( ) . get ( 0 ) == marker ; }
Determine if a name is segmented i . e . if it ends with the correct marker type .