Changeset 10746 in josm for trunk/src/com/kitfox
- Timestamp:
- 2016-08-06T16:52:01+02:00 (8 years ago)
- Location:
- trunk/src/com/kitfox/svg
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/kitfox/svg/SVGUniverse.java
r10741 r10746 56 56 import java.net.URL; 57 57 import java.util.ArrayList; 58 import java.util.Base64; 58 59 import java.util.HashMap; 59 60 import java.util.Iterator; … … 62 63 import java.util.zip.GZIPInputStream; 63 64 import javax.imageio.ImageIO; 64 import javax.xml.bind.DatatypeConverter;65 65 import javax.xml.parsers.ParserConfigurationException; 66 66 import javax.xml.parsers.SAXParserFactory; … … 195 195 try 196 196 { 197 byte[] buf = DatatypeConverter.parseBase64Binary(content.substring(6));197 byte[] buf = Base64.getDecoder().decode(content.substring(6)); 198 198 ByteArrayInputStream bais = new ByteArrayInputStream(buf); 199 199 BufferedImage img = ImageIO.read(bais); -
trunk/src/com/kitfox/svg/app/data/Handler.java
r8149 r10746 42 42 import java.net.URLConnection; 43 43 import java.net.URLStreamHandler; 44 import java.util.Base64; 44 45 import java.util.logging.Level; 45 46 import java.util.logging.Logger; 46 47 import javax.xml.bind.DatatypeConverter;48 47 49 48 /** … … 71 70 try 72 71 { 73 buf = DatatypeConverter.parseBase64Binary(content.substring(7));72 buf = Base64.getDecoder().decode(content.substring(7)); 74 73 } 75 74 catch (IllegalArgumentException e)
Note:
See TracChangeset
for help on using the changeset viewer.