/** * @param in a reader providing vCard data * @param registry a group registry used to construct vCard objects * @param propertyFactoryRegistry a property factory registry used to construct * vCard objects * @param parameterFactoryRegistry a parameter factory registry used to construct * vCard objects */ public VCardBuilder(Reader in, GroupRegistry registry, PropertyFactoryRegistry propertyFactoryRegistry, ParameterFactoryRegistry parameterFactoryRegistry) { this.reader = new BufferedReader(new UnfoldingReader(in, BUFFER_SIZE), BUFFER_SIZE); this.groupRegistry = registry; this.propertyFactoryRegistry = propertyFactoryRegistry; this.parameterFactoryRegistry = parameterFactoryRegistry; this.relaxedParsing = CompatibilityHints.isHintEnabled(CompatibilityHints.KEY_RELAXED_PARSING); }
/** * @param in a reader providing vCard data * @param registry a group registry used to construct vCard objects * @param propertyFactoryRegistry a property factory registry used to construct * vCard objects * @param parameterFactoryRegistry a parameter factory registry used to construct * vCard objects */ public VCardBuilder(final Reader in, final GroupRegistry registry, final PropertyFactoryRegistry propertyFactoryRegistry, final ParameterFactoryRegistry parameterFactoryRegistry) { this.reader = new BufferedReader(new UnfoldingReader(in, BUFFER_SIZE), BUFFER_SIZE); this.groupRegistry = registry; this.propertyFactoryRegistry = propertyFactoryRegistry; this.parameterFactoryRegistry = parameterFactoryRegistry; this.relaxedParsing = CompatibilityHints.isHintEnabled(CompatibilityHints.KEY_RELAXED_PARSING); }
/** * Builds an iCalendar model from the specified reader. An <code>UnfoldingReader</code> is applied to the * specified reader to ensure the data stream is correctly unfolded where appropriate. * @param in a reader to read calendar data from * @return a calendar parsed from the specified reader * @throws IOException where an error occurs reading data from the specified reader * @throws ParserException where an error occurs parsing data from the reader */ public Calendar build(final Reader in) throws IOException, ParserException { return build(new UnfoldingReader(in)); }
/** * Builds an iCalendar model from the specified reader. An <code>UnfoldingReader</code> is applied to the * specified reader to ensure the data stream is correctly unfolded where appropriate. * * @param in a reader to read calendar data from * @return a calendar parsed from the specified reader * @throws IOException where an error occurs reading data from the specified reader * @throws ParserException where an error occurs parsing data from the reader */ public Calendar build(final Reader in) throws IOException, ParserException { return build(new UnfoldingReader(in)); }
/** * Builds an iCalendar model from the specified reader. An <code>UnfoldingReader</code> is applied to the * specified reader to ensure the data stream is correctly unfolded where appropriate. * * @param in a reader to read calendar data from * @return a calendar parsed from the specified reader * @throws IOException where an error occurs reading data from the specified reader * @throws ParserException where an error occurs parsing data from the reader */ public Calendar build(final Reader in) throws IOException, ParserException { return build(new UnfoldingReader(in)); }
/** * Builds an iCalendar model from the specified reader. An <code>UnfoldingReader</code> is applied to the * specified reader to ensure the data stream is correctly unfolded where appropriate. * * @param in a reader to read calendar data from * @return a calendar parsed from the specified reader * @throws IOException where an error occurs reading data from the specified reader * @throws ParserException where an error occurs parsing data from the reader */ public Calendar build(final Reader in) throws IOException, ParserException { return build(new UnfoldingReader(in)); }
/** * Builds an iCalendar model from the specified reader. An <code>UnfoldingReader</code> is applied to the * specified reader to ensure the data stream is correctly unfolded where appropriate. * @param in a reader to read calendar data from * @return a calendar parsed from the specified reader * @throws IOException where an error occurs reading data from the specified reader * @throws ParserException where an error occurs parsing data from the reader */ public Calendar build(final Reader in) throws IOException, ParserException { return build(new UnfoldingReader(in)); }
/** * Builds an iCalendar model from the specified reader. An <code>UnfoldingReader</code> is applied to the * specified reader to ensure the data stream is correctly unfolded where appropriate. * * @param in a reader to read calendar data from * @return a calendar parsed from the specified reader * @throws IOException where an error occurs reading data from the specified reader * @throws ParserException where an error occurs parsing data from the reader */ public Calendar build(final Reader in) throws IOException, ParserException { return build(new UnfoldingReader(in)); }
reader = new UnfoldingReader(new InputStreamReader(uri.toURL().openStream()), 3000); return new CalendarBuilder().build(reader);
/** * @param input */ public UnfoldingReaderTest(String input) { this(new UnfoldingReader(new StringReader(input), BUFFER_SIZE)); }
final UnfoldingReader ufrdr = new UnfoldingReader(sr, true);
final UnfoldingReader ufrdr = new UnfoldingReader(sr, true);
BufferedReader bin = new BufferedReader(new UnfoldingReader(new FileReader(filename), 1024), 1024); StringWriter rout = new StringWriter(); BufferedWriter bout = new BufferedWriter(rout);
CalendarBuilder bldr = new CalendarBuilder(new CalendarParserImpl(), ic); UnfoldingReader ufrdr = new UnfoldingReader(rdr, true);
UnfoldingReader ufrdr = new UnfoldingReader(new StringReader(sb.toString()), true);