Package org.opoo.press.source

Examples of org.opoo.press.source.NoFrontMatterException


      }
     
      String line = iterator.next();
      if(!isFrontMatterStartLine(line, sourceEntry)){
        log.debug("Maybe a static file: " + sourceEntry.getFile());
        throw new NoFrontMatterException(sourceEntry);
      }
     
      boolean hasFrontMatterEndLine = false;
      //process headers
      while(iterator.hasNext()){
        line = iterator.next();
        if(isFrontMatterEndLine(line)){
          hasFrontMatterEndLine = true;
          currentList = contentLines;
          continue;
        }
        currentList.add(line);
      }
     
      if(!hasFrontMatterEndLine){
        log.debug("Maybe a static file: " + sourceEntry.getFile());
        throw new NoFrontMatterException(sourceEntry);
      }
    } catch (IOException e) {
      throw new RuntimeException(e);
    }finally{
      IOUtils.closeQuietly(stream);
View Full Code Here

TOP

Related Classes of org.opoo.press.source.NoFrontMatterException

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.