Class OSGiHeader

java.lang.Object
aQute.bnd.header.OSGiHeader

public class OSGiHeader extends Object
  • Field Details

    • TOKEN_P

      public static final Pattern TOKEN_P
  • Constructor Details

    • OSGiHeader

      public OSGiHeader()
  • Method Details

    • parseHeader

      public static Parameters parseHeader(String value)
    • parseHeader

      public static Parameters parseHeader(String value, Reporter logger)
      Standard OSGi header parser. This parser can handle the format clauses ::= clause ( ',' clause ) + clause ::= name ( ';' name ) (';' key '=' value ) This is mapped to a Map { name => Map { attr|directive => value } }
      Parameters:
      value - A string
      Returns:
      a Map<String,Map<String,String>>
    • parseHeader

      public static Parameters parseHeader(String value, Reporter logger, Parameters result)
    • parseProperties

      public static Attrs parseProperties(String input)
    • parseProperties

      public static Attrs parseProperties(String input, Reporter logger)
    • quote

      public static boolean quote(StringBuilder sb, String value)
      Parameters:
      sb -
      value -
    • quote

      public static boolean quote(StringBuilder sb, String value, char quoteChar)
    • quote

      public static boolean quote(Appendable sb, String value) throws IOException
      Throws:
      IOException
    • quote

      public static boolean quote(Appendable sb, String value, char quoteChar) throws IOException
      Throws:
      IOException