throw new CorruptedException( this.getImplementation(), position ); throw new CorruptedException( this.getImplementation(), position );
/** * Returns the message of the exception. * * @return The message of the exception. */ public String getMessage() { return this.getCorruptedExceptionMessage( this.getLocale(), new Long( this.position ) ); }
throw new CorruptedException( this.getImplementation(), position ); throw new CorruptedException( this.getImplementation(), position );
throw new CorruptedException( this.getImplementation(), position ); throw new CorruptedException( this.getImplementation(), position );
throw new CorruptedException( this.getImplementation(), this.getChecksumPosition() + ERECORD_OFFSETS[0] ); throw new CorruptedException( this.getImplementation(), this.getChecksumPosition() + ERECORD_OFFSETS[1] );
protected char getBlockType( final long position ) throws IOException { // Feld 2 final AlphaNumericText27 txt = this.readAlphaNumeric( Fields.FIELD_A2, position + ARECORD_OFFSETS[1], ARECORD_LENGTH[1], ENCODING_ASCII ); char ret = '?'; if ( txt != null ) { if ( txt.length() != 1 ) { if ( ThreadLocalMessages.isErrorsEnabled() ) { throw new CorruptedException( this.getImplementation(), position + ARECORD_OFFSETS[1] ); } else { final Message msg = new IllegalDataMessage( Fields.FIELD_A2, IllegalDataMessage.TYPE_CONSTANT, position + ARECORD_OFFSETS[1], txt.format() ); ThreadLocalMessages.getMessages().addMessage( msg ); } } else { ret = txt.charAt( 0 ); } } return ret; }
throw new CorruptedException( this.getImplementation(), position );
if ( ThreadLocalMessages.isErrorsEnabled() ) throw new CorruptedException( this.getImplementation(), position );
throw new CorruptedException( this.getImplementation(), 0L ); throw new CorruptedException( this.getImplementation(), length ); throw new CorruptedException( this.getImplementation(), length );
protected char getBlockType( final long position ) throws IOException { // Feld 2 final AlphaNumericText27 txt = this.readAlphaNumeric( Fields.FIELD_A2, position + ARECORD_OFFSETS[2], ARECORD_LENGTH[2], ENCODING_EBCDI ); char ret = '?'; if ( txt != null ) { if ( txt.length() != 1 ) { if ( ThreadLocalMessages.isErrorsEnabled() ) { throw new CorruptedException( this.getImplementation(), position + ARECORD_OFFSETS[2] ); } else { final Message msg = new IllegalDataMessage( Fields.FIELD_A2, IllegalDataMessage.TYPE_CONSTANT, position + ARECORD_OFFSETS[2], txt.format() ); ThreadLocalMessages.getMessages().addMessage( msg ); } } else { ret = txt.charAt( 0 ); } } return ret; }
throw new CorruptedException( this.getImplementation(), position + this.getBlockSize() + CRECORD_OFFSETS2[4] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[0] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[1] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[2] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[3] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[4] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[5] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[6] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[9] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[10] ); throw new CorruptedException( this.getImplementation(), position + this.getBlockSize() + CRECORD_OFFSETS1[10] ); throw new CorruptedException( this.getImplementation(), position + this.getBlockSize() + CRECORD_OFFSETS1[10] ); throw new CorruptedException(
throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[21] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[0] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[2] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[3] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[4] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[5] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[6] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[8] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[12] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[13] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[19] ); throw new CorruptedException( this.getImplementation(), position + CRECORD_OFFSETS1[19] ); throw new CorruptedException( this.getImplementation(), position + this.getBlockSize() + CRECORD_EXTINDEX_TO_TYPEOFFSET[search] ); throw new CorruptedException(
throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[0] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[0] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[3] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[4] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[5] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[7] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[9] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[10] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[14] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[14] );
throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[0] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[1] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[2] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[3] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[4] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[6] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[8] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[9] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[13] ); throw new CorruptedException( this.getImplementation(), this.getHeaderPosition() + ARECORD_OFFSETS[13] );
throw new CorruptedException( this.getImplementation(), position ); throw new CorruptedException( this.getImplementation(), position + DTAUSDisk.ERECORD_OFFSETS[1] ); throw new CorruptedException( this.getImplementation(), position + DTAUSDisk.ARECORD_OFFSETS[1] );
throw new CorruptedException( this.getImplementation(), this.getChecksumPosition() + ERECORD_OFFSETS[0] ); throw new CorruptedException( this.getImplementation(), this.getChecksumPosition() + ERECORD_OFFSETS[2] );