public static StringBuffer parseName(byte[] header,int offset,int length){
  StringBuffer result=new StringBuffer(length);
  int end=offset + length;
  for (int i=offset; i < end; ++i) {
    if (header[i] == 0)     break;
    result.append((char)header[i]);
  }
  return result;
}

public static StringBuffer parseName ( byte [ ] header , int offset , int length ) { StringBuffer result = new StringBuffer ( length ) ; int end = offset + length ; for ( int i = offset ; i < end ; ++ i ) { if ( header [ i ] == 0 ) break ; result . append ( ( char ) header [ i ] ) ; } return result ; }
parse an entry name from a header buffer .
