public class CSSInputStream extends Object implements org.antlr.runtime.CharStream
| Modifier and Type | Method and Description |
|---|---|
void |
consume() |
URL |
getBase()
Obtains the current base URL used for locating the eventual imported style sheets.
|
int |
getCharPositionInLine() |
String |
getEncoding()
Obtains current character encoding used for processing the style sheets.
|
int |
getLine() |
String |
getRawData() |
String |
getSourceName() |
int |
index() |
int |
LA(int arg0) |
int |
LT(int arg0) |
int |
mark() |
void |
release(int arg0) |
void |
rewind() |
void |
rewind(int arg0) |
void |
seek(int arg0) |
void |
setBase(URL base)
Sets the base URL used for locating the eventual imported style sheets.
|
void |
setCharPositionInLine(int arg0) |
void |
setEncoding(String enc)
Sets a new encoding for the input stream.
|
void |
setLine(int arg0) |
int |
size() |
static CSSInputStream |
stringStream(String source) |
String |
substring(int arg0,
int arg1) |
static CSSInputStream |
urlStream(URL source,
String encoding) |
public static CSSInputStream stringStream(String source) throws IOException
IOExceptionpublic static CSSInputStream urlStream(URL source, String encoding) throws IOException
IOExceptionpublic int LT(int arg0)
LT in interface org.antlr.runtime.CharStreampublic int getCharPositionInLine()
getCharPositionInLine in interface org.antlr.runtime.CharStreampublic int getLine()
getLine in interface org.antlr.runtime.CharStreampublic void setCharPositionInLine(int arg0)
setCharPositionInLine in interface org.antlr.runtime.CharStreampublic void setLine(int arg0)
setLine in interface org.antlr.runtime.CharStreampublic String substring(int arg0, int arg1)
substring in interface org.antlr.runtime.CharStreampublic int LA(int arg0)
LA in interface org.antlr.runtime.IntStreampublic void consume()
consume in interface org.antlr.runtime.IntStreampublic int index()
index in interface org.antlr.runtime.IntStreampublic int mark()
mark in interface org.antlr.runtime.IntStreampublic void release(int arg0)
release in interface org.antlr.runtime.IntStreampublic void rewind()
rewind in interface org.antlr.runtime.IntStreampublic void rewind(int arg0)
rewind in interface org.antlr.runtime.IntStreampublic void seek(int arg0)
seek in interface org.antlr.runtime.IntStreampublic int size()
size in interface org.antlr.runtime.IntStreampublic String getSourceName()
getSourceName in interface org.antlr.runtime.IntStreampublic URL getBase()
public void setBase(URL base)
base - The new base URL.public String getEncoding()
public void setEncoding(String enc) throws IOException
enc - The new encoding name.IOExceptionpublic String getRawData()
Copyright © 2014. All rights reserved.