code: public static int decoratorNames(int ecflags, byte[][] decorators) {
          switch (ecflags & NEWLINE_DECORATOR_MASK) {
          case UNIVERSAL_NEWLINE_DECORATOR:
          case CRLF_NEWLINE_DECORATOR:
          case CR_NEWLINE_DECORATOR:
          case 0:
              break;
          default:
              return -1;
          }
  
          if (((ecflags & XML_TEXT_DECORATOR) != 0) && ((ecflags & XML_ATTR_CONTENT_DECORATOR) != 0)) return -1;
  
          int numDecorators = 0;
  
          if ((ecflags & XML_TEXT_DECORATOR) != 0) decorators[numDecorators++] = "xml_text_escape".getBytes();
          if ((ecflags & XML_ATTR_CONTENT_DECORATOR) != 0) decorators[numDecorators++] = "xml_attr_content_escape".getBytes();
          if ((ecflags & XML_ATTR_QUOTE_DECORATOR) != 0) decorators[numDecorators++] = "xml_attr_quote".getBytes();
  
          if ((ecflags & CRLF_NEWLINE_DECORATOR) != 0) decorators[numDecorators++] = "crlf_newline".getBytes();
          if ((ecflags & CR_NEWLINE_DECORATOR) != 0) decorators[numDecorators++] = "cr_newline".getBytes();
          if ((ecflags & UNIVERSAL_NEWLINE_DECORATOR) != 0) decorators[numDecorators++] = "universal_newline".getBytes();
  
          return numDecorators;
      }
docs: /* decorator_names