Convert the entire byte array to a string, then use string manipulators (split, substring, indexOf, etc) to get what you want.