Class ManifestAttribute


  • public class ManifestAttribute
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.StringBuilder content  
      private static java.lang.String ELEMENT_SEPARATOR  
    • Constructor Summary

      Constructors 
      Constructor Description
      ManifestAttribute​(java.lang.String str)  
      ManifestAttribute​(java.lang.String name, java.lang.String value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.String str)  
      private java.lang.String chopNewLine​(java.lang.String str)  
      java.lang.String getValue()  
      boolean hasName​(java.lang.String name)  
      void set​(java.lang.String name, java.lang.String value)  
      void set​(java.lang.String name, java.util.List<MutableManifestElement> manifestElements)  
      void writeTo​(java.io.Writer w, java.lang.String lineTermination)
      Writes the lines to w using the given line termination chars.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ELEMENT_SEPARATOR

        private static final java.lang.String ELEMENT_SEPARATOR
        See Also:
        Constant Field Values
      • content

        private final java.lang.StringBuilder content
    • Constructor Detail

      • ManifestAttribute

        public ManifestAttribute​(java.lang.String str)
      • ManifestAttribute

        public ManifestAttribute​(java.lang.String name,
                                 java.lang.String value)
    • Method Detail

      • add

        public void add​(java.lang.String str)
      • chopNewLine

        private java.lang.String chopNewLine​(java.lang.String str)
      • writeTo

        public void writeTo​(java.io.Writer w,
                            java.lang.String lineTermination)
                     throws java.io.IOException
        Writes the lines to w using the given line termination chars. There will be a trailing newline!
        Throws:
        java.io.IOException
      • hasName

        public boolean hasName​(java.lang.String name)
      • getValue

        public java.lang.String getValue()
      • set

        public void set​(java.lang.String name,
                        java.lang.String value)