Package org.springframework.batch.item

Examples of org.springframework.batch.item.ReaderNotOpenException


   *
   * @return data or {@code NULL} if end of stream
   */
  private T readStore() {
    if (dataStoreReader == null) {
      throw new ReaderNotOpenException("Reader must be open before it can be read.");
    }
    try {
      return dataStoreReader.read();
    } catch (IOException e) {
      throw new NonTransientResourceException("Unable to read from resource: [" + dataStoreReader + "]", e);
View Full Code Here


  }

  @Override
  public ProcessIndicatorItemWrapper<T> read() {
    if (!initialized) {
      throw new ReaderNotOpenException("Reader must be open before it can be used.");
    }

    Long id = null;
    synchronized (lock) {
      if (keys.hasNext()) {
View Full Code Here

   * {@link #setVerifyCursorPosition(boolean)} is true.
   */
  @Override
  protected T doRead() throws Exception {
    if (rs == null) {
      throw new ReaderNotOpenException("Reader must be open before it can be read.");
    }

    try {
      if (!rs.next()) {
        return null;
View Full Code Here

   * @return next line (skip comments).getCurrentResource
   */
  private String readLine() {

    if (reader == null) {
      throw new ReaderNotOpenException("Reader must be open before it can be read.");
    }

    String line = null;

    try {
View Full Code Here

TOP

Related Classes of org.springframework.batch.item.ReaderNotOpenException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.