/** * @param parser a custom calendar parser * @param tzRegistry a custom timezone registry */ public CalendarBuilder(CalendarParser parser, Supplier<List<ParameterFactory>> parameterFactorySupplier, Supplier<List<PropertyFactory>> propertyFactorySupplier, Supplier<List<ComponentFactory>> componentFactorySupplier, TimeZoneRegistry tzRegistry) { this.parser = parser; this.tzRegistry = tzRegistry; this.contentHandler = new DefaultContentHandler(this, tzRegistry, parameterFactorySupplier, propertyFactorySupplier, componentFactorySupplier); }
/** * Constructs a new instance using the specified parser and registry. * * @param parser a calendar parser used to construct the calendar * @param tzRegistry a timezone registry used to retrieve {@link TimeZone}s and * register additional timezone information found * in the calendar */ public CalendarBuilder(CalendarParser parser, TimeZoneRegistry tzRegistry) { this.parser = parser; this.tzRegistry = tzRegistry; this.contentHandler = new DefaultContentHandler(this, tzRegistry); }
/** * @param parser a custom calendar parser * @param tzRegistry a custom timezone registry */ public CalendarBuilder(CalendarParser parser, Supplier<List<ParameterFactory>> parameterFactorySupplier, Supplier<List<PropertyFactory>> propertyFactorySupplier, Supplier<List<ComponentFactory>> componentFactorySupplier, TimeZoneRegistry tzRegistry) { this.parser = parser; this.tzRegistry = tzRegistry; this.contentHandler = new DefaultContentHandler(this, tzRegistry, parameterFactorySupplier, propertyFactorySupplier, componentFactorySupplier); }
/** * Constructs a new instance using the specified parser and registry. * * @param parser a calendar parser used to construct the calendar * @param tzRegistry a timezone registry used to retrieve {@link TimeZone}s and * register additional timezone information found * in the calendar */ public CalendarBuilder(CalendarParser parser, TimeZoneRegistry tzRegistry) { this.parser = parser; this.tzRegistry = tzRegistry; this.contentHandler = new DefaultContentHandler(this, tzRegistry); }
/** * Constructs a new calendar builder using the specified timezone registry. * * @param tzRegistry a timezone registry to populate with discovered timezones */ public CalendarBuilder(final TimeZoneRegistry tzRegistry) { this.parser = CalendarParserFactory.getInstance().get(); this.tzRegistry = tzRegistry; this.contentHandler = new DefaultContentHandler(this, tzRegistry); }
/** * Constructs a new calendar builder using the specified timezone registry. * * @param tzRegistry a timezone registry to populate with discovered timezones */ public CalendarBuilder(final TimeZoneRegistry tzRegistry) { this.parser = CalendarParserFactory.getInstance().get(); this.tzRegistry = tzRegistry; this.contentHandler = new DefaultContentHandler(this, tzRegistry); }
/** * Constructs a new calendar builder using the specified calendar parser. * * @param parser a calendar parser used to parse calendar files */ public CalendarBuilder(final CalendarParser parser) { this.parser = parser; this.tzRegistry = TimeZoneRegistryFactory.getInstance().createRegistry(); this.contentHandler = new DefaultContentHandler(this, tzRegistry); }
/** * Constructs a new calendar builder using the specified calendar parser. * * @param parser a calendar parser used to parse calendar files */ public CalendarBuilder(final CalendarParser parser) { this.parser = parser; this.tzRegistry = TimeZoneRegistryFactory.getInstance().createRegistry(); this.contentHandler = new DefaultContentHandler(this, tzRegistry); }
/** * Default constructor. */ public CalendarBuilder() { this.parser = CalendarParserFactory.getInstance().get(); this.tzRegistry = TimeZoneRegistryFactory.getInstance().createRegistry(); this.contentHandler = new DefaultContentHandler(this, tzRegistry); }
/** * Default constructor. */ public CalendarBuilder() { this.parser = CalendarParserFactory.getInstance().get(); this.tzRegistry = TimeZoneRegistryFactory.getInstance().createRegistry(); this.contentHandler = new DefaultContentHandler(this, tzRegistry); }