Browse Source

删除无用代码

research/11.0
kerry 6 years ago
parent
commit
71e27eff53
  1. 22
      fine-itext-old/src/com/fr/third/com/lowagie/text/html/simpleparser/HTMLWorker.java

22
fine-itext-old/src/com/fr/third/com/lowagie/text/html/simpleparser/HTMLWorker.java

@ -478,28 +478,6 @@ public class HTMLWorker implements SimpleXMLDocHandler, DocListener {
}
public BufferedImage GetBufferedImage(String base64string)
{
BufferedImage image = null;
try {
InputStream stream = BaseToInputStream(base64string);
image = ImageIO.read(stream);
} catch (IOException e) {
e.printStackTrace();
}
return image;
}
public InputStream BaseToInputStream(String base64string){
ByteArrayInputStream stream = null;
try {
BASE64Decoder decoder = new BASE64Decoder();
byte[] bytes1 = decoder.decodeBuffer(base64string);
stream = new ByteArrayInputStream(bytes1);
} catch (Exception e) {
}
return stream;
}
public void endElement(String tag) {
if (!tagsSupported.containsKey(tag))

Loading…
Cancel
Save