private void includeUntilAfter(BufferedReader bufferedReader,StringBuilder minified,char end) throws IOException {
  char cPrevious=0;
  boolean previousSet=false;
  while (true) {
    int cInt=bufferedReader.read();
    if (cInt == -1) {
      return;
    }
    char c=(char)cInt;
    minified.append(c);
    if (c == end && (!previousSet || cPrevious != '\\')) {
      return;
    }
    previousSet=true;
    cPrevious=c;
  }
}

private void includeUntilAfter ( BufferedReader bufferedReader , StringBuilder minified , char end ) throws IOException { char cPrevious = 0 ; boolean previousSet = false ; while ( true ) { int cInt = bufferedReader . read ( ) ; if ( cInt == - 1 ) { return ; } char c = ( char ) cInt ; minified . append ( c ) ; if ( c == end && ( ! previousSet || cPrevious != '\\' ) ) { return ; } previousSet = true ; cPrevious = c ; } }
appends every character up until the terminginated matching character ` end ` . understands escapes with ' \ ' .
