package com.thoughtworks.xstream.converters.basic; import com.thoughtworks.xstream.converters.ConversionException; import java.net.URI; import java.net.URISyntaxException; /* loaded from: classes.dex */ public class URIConverter extends AbstractSingleValueConverter { static /* synthetic */ Class class$java$net$URI; static /* synthetic */ Class class$(String str) { try { return Class.forName(str); } catch (ClassNotFoundException e) { throw new NoClassDefFoundError().initCause(e); } } @Override // com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter, com.thoughtworks.xstream.converters.ConverterMatcher public boolean canConvert(Class cls) { Class cls2 = class$java$net$URI; if (cls2 == null) { cls2 = class$("java.net.URI"); class$java$net$URI = cls2; } return cls == cls2; } @Override // com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter, com.thoughtworks.xstream.converters.SingleValueConverter public Object fromString(String str) { try { return new URI(str); } catch (URISyntaxException e) { throw new ConversionException(e); } } }