public MimeType getContentFormatMimeType() throws IllegalArgumentException { return MimeType.valueOf(contentFormat); }
/** * Used internally by Cling when {@link RemoteDevice} is discovered, you shouldn't have to call this. */ public Icon(String mimeType, int width, int height, int depth, URI uri) { this(mimeType != null && mimeType.length() > 0 ? MimeType.valueOf(mimeType) : null, width, height, depth, uri, null); }
/** * Use this constructor if your local icon data is in a <code>byte[]</code>. * * @param uniqueName Must be a valid URI path segment and unique within the scope of a device. */ public Icon(String mimeType, int width, int height, int depth, String uniqueName, byte[] data) { this(mimeType != null && mimeType.length() > 0 ? MimeType.valueOf(mimeType) : null, width, height, depth, URI.create(uniqueName), data); }
public void setString(String s) throws InvalidHeaderException { setValue(MimeType.valueOf(s)); }
public DLNAProtocolInfo(DLNAProfiles profile, EnumMap<DLNAAttribute.Type, DLNAAttribute> attributes) { super(MimeType.valueOf(profile.getContentFormat())); this.attributes.putAll(attributes); this.attributes.put(DLNAAttribute.Type.DLNA_ORG_PN, new DLNAProfileAttribute(profile)); this.additionalInfo = this.getAttributesString(); }
public DLNAProtocolInfo(DLNAProfiles profile) { super(MimeType.valueOf(profile.getContentFormat())); this.attributes.put(DLNAAttribute.Type.DLNA_ORG_PN, new DLNAProfileAttribute(profile)); this.additionalInfo = this.getAttributesString(); }
public GstConnectionManagerService() { List<PluginFeature> types = Registry.getDefault().getPluginFeatureListByPlugin("typefindfunctions"); for (PluginFeature type : types) { try { MimeType mt = MimeType.valueOf(type.getName()); log.fine("Supported MIME type: " + mt); sinkProtocolInfo.add(new ProtocolInfo(mt)); } catch (IllegalArgumentException ex) { log.finer("Ignoring invalid MIME type: " + type.getName()); } } log.info("Supported MIME types: " + sinkProtocolInfo.size()); }
try { icon.mimeType = XMLUtil.getTextContent(iconChild); MimeType.valueOf(icon.mimeType); } catch(IllegalArgumentException ex) { log.warning("Ignoring invalid icon mime type: " + icon.mimeType);
try { getInstance().mimeType = getCharacters(); MimeType.valueOf(getInstance().mimeType); } catch(IllegalArgumentException ex) { log.warning("Ignoring invalid icon mime type: " + getInstance().mimeType);
public MimeType getContentFormatMimeType() throws IllegalArgumentException { return MimeType.valueOf(contentFormat); }
/** * Used internally by Cling when {@link RemoteDevice} is discovered, you shouldn't have to call this. */ public Icon(String mimeType, int width, int height, int depth, URI uri) { this(mimeType != null && mimeType.length() > 0 ? MimeType.valueOf(mimeType) : null, width, height, depth, uri, null); }
/** * Use this constructor if your local icon data is in a <code>byte[]</code>. * * @param uniqueName Must be a valid URI path segment and unique within the scope of a device. */ public Icon(String mimeType, int width, int height, int depth, String uniqueName, byte[] data) { this(mimeType != null && mimeType.length() > 0 ? MimeType.valueOf(mimeType) : null, width, height, depth, URI.create(uniqueName), data); }
public void setString(String s) throws InvalidHeaderException { setValue(MimeType.valueOf(s)); }
public DLNAProtocolInfo(DLNAProfiles profile, EnumMap<DLNAAttribute.Type, DLNAAttribute> attributes) { super(MimeType.valueOf(profile.getContentFormat())); this.attributes.putAll(attributes); this.attributes.put(DLNAAttribute.Type.DLNA_ORG_PN, new DLNAProfileAttribute(profile)); this.additionalInfo = this.getAttributesString(); }
public DLNAProtocolInfo(DLNAProfiles profile) { super(MimeType.valueOf(profile.getContentFormat())); this.attributes.put(DLNAAttribute.Type.DLNA_ORG_PN, new DLNAProfileAttribute(profile)); this.additionalInfo = this.getAttributesString(); }
sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("image/jpeg"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("image/png"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("image/gif"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("image/bmp"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("image/pjpeg"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("image/tiff"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("image/x-ms-bmp"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("video/3gpp"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("video/mp4"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("video/3gp2"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("video/avi"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("video/flv"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("video/mpeg"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("video/x-mkv"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("video/x-matroska"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("video/msvideo"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("video/quicktime"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("video/x-msvideo"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("video/x-ms-wmv"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("audio/aac"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("audio/3gpp"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("audio/amr"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("audio/ogg"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("audio/mpeg"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("audio/midi"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("audio/x-midi"))); sinkProtocolInfo.add(new ProtocolInfo(MimeType.valueOf("audio/x-mid")));
/** * Used internally by Cling when {@link RemoteDevice} is discovered, you shouldn't have to call this. */ public Icon(String mimeType, int width, int height, int depth, URI uri) { this(mimeType != null && mimeType.length() > 0 ? MimeType.valueOf(mimeType) : null, width, height, depth, uri, null); }
/** * Use this constructor if your local icon data is in a <code>byte[]</code>. * * @param uniqueName Must be a valid URI path segment and unique within the scope of a device. */ public Icon(String mimeType, int width, int height, int depth, String uniqueName, byte[] data) { this(mimeType != null && mimeType.length() > 0 ? MimeType.valueOf(mimeType) : null, width, height, depth, URI.create(uniqueName), data); }
public DLNAProtocolInfo(DLNAProfiles profile, EnumMap<DLNAAttribute.Type, DLNAAttribute> attributes) { super(MimeType.valueOf(profile.getContentFormat())); this.attributes.putAll(attributes); this.attributes.put(DLNAAttribute.Type.DLNA_ORG_PN, new DLNAProfileAttribute(profile)); this.additionalInfo = this.getAttributesString(); }
public DLNAProtocolInfo(DLNAProfiles profile) { super(MimeType.valueOf(profile.getContentFormat())); this.attributes.put(DLNAAttribute.Type.DLNA_ORG_PN, new DLNAProfileAttribute(profile)); this.additionalInfo = this.getAttributesString(); }