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.
5757/**
5858 * Utilities class to parse a CSS style sheet.
5959 */
60- // TODO refactor into interface
6160public final class CssStyleSheetParser {
6261
6362 /**
@@ -76,7 +75,8 @@ private CssStyleSheetParser() {
7675 */
7776 public static CssStyleSheet parse (InputStream stream , String baseUrl ) throws IOException {
7877 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 ));
8080 char [] buffer = new char [8192 ];
8181 int length ;
8282 while ((length = br .read (buffer , 0 , buffer .length )) > 0 ) {
@@ -106,7 +106,6 @@ public static CssStyleSheet parse(InputStream stream) throws IOException {
106106 * @return the resulting {@link CssStyleSheet}
107107 */
108108 public static CssStyleSheet parse (String data , String baseUrl ) {
109- // TODO charset? better to create parse logic based on string completely
110109 ByteArrayInputStream stream = new ByteArrayInputStream (data .getBytes (StandardCharsets .UTF_8 ));
111110 try {
112111 return parse (stream , baseUrl );
You can’t perform that action at this time.
0 commit comments