import AI013x0xDecoder from './AI013x0xDecoder' ; import BitArray from '../../../../common/BitArray' ; import StringBuilder from '../../../../util/StringBuilder' ; export default class AI01320xDecoder extends AI013x0xDecoder { constructor ( information ) { super ( information ) ; } protected addWeightCode ( buf , weight ) { if ( weight < 10000 ) { buf . append ( '(3202)' ) ; } else { buf . append ( '(3203)' ) ; } } protected checkWeight ( weight ) { if ( weight < 10000 ) { return weight ; } return weight - 10000 ; } }