/**
* This method parses only one rule (style rule or at-rule, except
+ *
* @charset).
*
* @param source
String encoding = source.getEncoding();
InputStream input = source.getByteStream();
if (!input.markSupported()) {
+ // If mark is not supported, wrap it in a stream which supports mark
input = new BufferedInputStream(input);
source.setByteStream(input);
- input.mark(100);
}
+ // Mark either the original stream or the wrapped stream
+ input.mark(100);
if (encoding == null) {
encoding = "ASCII";
return false;
}
+ private boolean jj_3R_252() {
+ if (jj_scan_token(HASH)) {
+ return true;
+ }
+ return false;
+ }
+
private boolean jj_3R_184() {
if (jj_scan_token(SEMICOLON)) {
return true;
return false;
}
- private boolean jj_3R_252() {
- if (jj_scan_token(HASH)) {
- return true;
- }
- return false;
- }
-
private boolean jj_3R_239() {
Token xsp;
xsp = jj_scanpos;
String encoding = source.getEncoding();
InputStream input = source.getByteStream();
if (!input.markSupported()) {
+ // If mark is not supported, wrap it in a stream which supports mark
input = new BufferedInputStream(input);
source.setByteStream(input);
- input.mark(100);
}
+ // Mark either the original stream or the wrapped stream
+ input.mark(100);
if(encoding == null){
encoding = "ASCII";