Package se.datadosen.jalbum
Class EmbeddedProperties
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
,String> NavigableMap<String,
,String> SortedMap<String,
String>
Manages the embedding of properties (string name=value pairs) in files
- Since:
- 15
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
-
Constructor Summary
ConstructorDescriptionCreate an empty instanceEmbeddedProperties
(File jpegFile) Get properties previously written to fileEmbeddedProperties
(Map<? extends String, ? extends String> m) Create an instance based on an existing name=value map -
Method Summary
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, merge, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
-
Field Details
-
FILE_PROPERTIES_KEY
- See Also:
-
-
Constructor Details
-
EmbeddedProperties
public EmbeddedProperties()Create an empty instance -
EmbeddedProperties
Create an instance based on an existing name=value map- Parameters:
m
-
-
EmbeddedProperties
Get properties previously written to file- Parameters:
jpegFile
-
-
-
Method Details
-
write
Write properties back to JPEG image file, preserving the image file itself- Parameters:
jpegFile
-- Throws:
IOException
-
write
Write properties back to the same JPEG image file it was created with, preserving the image file itself- Throws:
IOException
-