Package org.openhab.core.library.types
Class RawType
java.lang.Object
org.openhab.core.library.types.RawType
- All Implemented Interfaces:
PrimitiveType
,State
,Type
This type can be used for all binary data such as images, documents, sounds etc.
Note that it is NOT adequate for any kind of streams, but only for fixed-size data.
- Author:
- Kai Kreuzer - Initial contribution, Laurent Garnier - add MIME type
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
DEFAULT_MIME_TYPE
- See Also:
-
bytes
protected byte[] bytes -
mimeType
-
-
Constructor Details
-
RawType
-
-
Method Details
-
getBytes
public byte[] getBytes() -
getMimeType
-
valueOf
-
toString
-
toFullString
Description copied from interface:Type
Get a string representation that contains the whole internal representation of the type.The returned string could be consumed by the static 'valueOf(String)' method of the respective type to build a new type that is equal to this type.
- Specified by:
toFullString
in interfaceType
- Returns:
- a full string representation of the type to be consumed by 'valueOf(String)'
-
format
Description copied from interface:Type
Formats the value of this type according to a pattern (seeFormatter
). -
hashCode
public int hashCode() -
equals
-