/** * Constructor. * * @param ps The property store containing all the settings for this object. * @param consumes The list of media types that this parser consumes (e.g. <js>"application/json"</js>). */ protected Parser(PropertyStore ps, String...consumes) { super(ps); trimStrings = getBooleanProperty(PARSER_trimStrings, false); strict = getBooleanProperty(PARSER_strict, false); autoCloseStreams = getBooleanProperty(PARSER_autoCloseStreams, false); debugOutputLines = getIntegerProperty(PARSER_debugOutputLines, 5); unbuffered = getBooleanProperty(PARSER_unbuffered, false); listener = getClassProperty(PARSER_listener, ParserListener.class, null); this.consumes = new MediaType[consumes.length]; for (int i = 0; i < consumes.length; i++) { this.consumes[i] = MediaType.forString(consumes[i]); } }
/** * Constructor. * * @param ps The property store containing all the settings for this object. * @param consumes The list of media types that this parser consumes (e.g. <js>"application/json"</js>). */ protected Parser(PropertyStore ps, String...consumes) { super(ps); trimStrings = getBooleanProperty(PARSER_trimStrings, false); strict = getBooleanProperty(PARSER_strict, false); autoCloseStreams = getBooleanProperty(PARSER_autoCloseStreams, false); debugOutputLines = getIntegerProperty(PARSER_debugOutputLines, 5); unbuffered = getBooleanProperty(PARSER_unbuffered, false); listener = getClassProperty(PARSER_listener, ParserListener.class, null); this.consumes = new MediaType[consumes.length]; for (int i = 0; i < consumes.length; i++) { this.consumes[i] = MediaType.forString(consumes[i]); } }
/** * Constructor. * * @param ps The property store containing all the settings for this object. * @param consumes The list of media types that this parser consumes (e.g. <js>"application/json"</js>). */ protected Parser(PropertyStore ps, String...consumes) { super(ps); trimStrings = getBooleanProperty(PARSER_trimStrings, false); strict = getBooleanProperty(PARSER_strict, false); autoCloseStreams = getBooleanProperty(PARSER_autoCloseStreams, false); debugOutputLines = getIntegerProperty(PARSER_debugOutputLines, 5); unbuffered = getBooleanProperty(PARSER_unbuffered, false); listener = getClassProperty(PARSER_listener, ParserListener.class, null); this.consumes = new MediaType[consumes.length]; for (int i = 0; i < consumes.length; i++) { this.consumes[i] = MediaType.forString(consumes[i]); } }