public class CommentStrippingReader extends Reader
Note: This is not a full function comment stripper for JavaScript files. In particular, it doesn't support JavaScript regular expressions, and may improperly recognize comment start and end tokens inside regular expressions. It does the job for what we need, though, which is removing comments from CSS and server-side JSON files.
public CommentStrippingReader(Reader reader)
public int read() throws IOException
read
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public int read(char[] cbuf) throws IOException
read
in class Reader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
Copyright © 2011-2015 IBM. All Rights Reserved.