public static SketchHex create ( String sketchName , String hexString ) throws HexParsingException { if ( sketchName . length ( ) > Constants . MAX_SKETCH_NAME_LENGTH ) { sketchName = sketchName . substring ( 0 , Constants . MAX_SKETCH_NAME_LENGTH ) ; } List < Line > lines = parseHexStringToLines ( hexString ) ; byte [ ] bytes = convertLinesToBytes ( lines ) ; return new AutoParcel_SketchHex ( sketchName , bytes ) ; }
Initialize a SketchHex object with a string of Intel Hex data .