public char charAt(int pos){
  if (pos < getLeadingGaps() || pos >= getLength() - getTrailingGaps())   return 0;
 else   if (alignment == null || !alignment.isTranslate())   return block.charAt(pos - getLeadingGaps());
 else {
    int which=pos - getLeadingGaps();
    if ((which % 3) == 0) {
      if (which + 2 < block.length()) {
        return (char)SequenceUtils.getAminoAcid(block.charAt(which),block.charAt(which + 1),block.charAt(which + 2));
      }
 else       return block.charAt(which);
    }
 else     return ' ';
  }
}

public char charAt ( int pos ) { if ( pos < getLeadingGaps ( ) || pos >= getLength ( ) - getTrailingGaps ( ) ) return 0 ; else if ( alignment == null || ! alignment . isTranslate ( ) ) return block . charAt ( pos - getLeadingGaps ( ) ) ; else { int which = pos - getLeadingGaps ( ) ; if ( ( which % 3 ) == 0 ) { if ( which + 2 < block . length ( ) ) { return ( char ) SequenceUtils . getAminoAcid ( block . charAt ( which ) , block . charAt ( which + 1 ) , block . charAt ( which + 2 ) ) ; } else return block . charAt ( which ) ; } else return ' ' ; } }
get the character at the given position
