/** * Returns the {@code InputStream} IO handle for this job's events. * * @return The event {@code InputStream} IO handle. */ public InputStream getEvents() { checkReady(); return getEvents(null); }
/** * Returns the {@code InputStream} IO handle for this job's events. * * @param args Optional arguments (see {@link JobEventsArgs}). * * @return The event {@code InputStream} IO handle. */ // NOTE: This overload exists primarily to provide better documentation // for the "args" parameter. public InputStream getEvents(JobEventsArgs args) { checkReady(); return getEvents((Map<String, Object>) args); }