File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
styled-xml-parser/src/main/java/com/itextpdf/styledxmlparser/css/parse Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ This file is part of the iText (R) project.
57
57
/**
58
58
* Utilities class to parse a CSS style sheet.
59
59
*/
60
- // TODO refactor into interface
61
60
public final class CssStyleSheetParser {
62
61
63
62
/**
@@ -76,7 +75,8 @@ private CssStyleSheetParser() {
76
75
*/
77
76
public static CssStyleSheet parse (InputStream stream , String baseUrl ) throws IOException {
78
77
CssParserStateController controller = new CssParserStateController (baseUrl );
79
- Reader br = PortUtil .wrapInBufferedReader (new InputStreamReader (stream , StandardCharsets .UTF_8 )); // TODO determine charset correctly DEVSIX-1458
78
+ // TODO determine charset correctly DEVSIX-1458
79
+ Reader br = PortUtil .wrapInBufferedReader (new InputStreamReader (stream , StandardCharsets .UTF_8 ));
80
80
char [] buffer = new char [8192 ];
81
81
int length ;
82
82
while ((length = br .read (buffer , 0 , buffer .length )) > 0 ) {
@@ -106,7 +106,6 @@ public static CssStyleSheet parse(InputStream stream) throws IOException {
106
106
* @return the resulting {@link CssStyleSheet}
107
107
*/
108
108
public static CssStyleSheet parse (String data , String baseUrl ) {
109
- // TODO charset? better to create parse logic based on string completely
110
109
ByteArrayInputStream stream = new ByteArrayInputStream (data .getBytes (StandardCharsets .UTF_8 ));
111
110
try {
112
111
return parse (stream , baseUrl );
You can’t perform that action at this time.
0 commit comments