public static final Type For(String mimetype) { if (null != Instance) try { return Instance.dereference(new Reference(Component.Type.Tools.For(mimetype))); } catch (java.io.IOException exc) { return null; } else throw new alto.sys.Error.State.Init("alto.io.Tools not initialized"); }
public static final Type For(Component.Type addr) { if (null != Instance) try { Reference ref = new Reference(Component.Type.Tools.For(addr)); Type type = Instance.dereference(ref); if (null != type) { String name = type.getName(); if (null == name) throw new alto.sys.Error.Bug(); } return type; } catch (java.io.IOException exc) { return null; } else throw new alto.sys.Error.State.Init("alto.io.Tools not initialized"); }
public static final Type Dereference(Reference ref) throws java.io.IOException { if (null != Instance) return Instance.dereference(ref); else throw new alto.sys.Error.State.Init("alto.io.Tools not initialized"); }