Class EmbeddedProperties

java.lang.Object
java.util.AbstractMap<K,V>
java.util.TreeMap<String,String>
se.datadosen.jalbum.EmbeddedProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<String,String>, NavigableMap<String,String>, SortedMap<String,String>

public class EmbeddedProperties extends TreeMap<String,String>
Manages the embedding of properties (string name=value pairs) in files
Since:
15
See Also:
  • Field Details

  • Constructor Details

    • EmbeddedProperties

      public EmbeddedProperties()
      Create an empty instance
    • EmbeddedProperties

      public EmbeddedProperties(Map<? extends String,? extends String> m)
      Create an instance based on an existing name=value map
      Parameters:
      m -
    • EmbeddedProperties

      public EmbeddedProperties(File jpegFile)
      Get properties previously written to file
      Parameters:
      jpegFile -
  • Method Details

    • write

      public void write(File jpegFile) throws IOException
      Write properties back to JPEG image file, preserving the image file itself
      Parameters:
      jpegFile -
      Throws:
      IOException
    • write

      public void write() throws IOException
      Write properties back to the same JPEG image file it was created with, preserving the image file itself
      Throws:
      IOException