Class PagingHelper


  • public class PagingHelper
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PagingHelper​(long totalDocuments, int postsPerPage)  
    • Constructor Detail

      • PagingHelper

        public PagingHelper​(long totalDocuments,
                            int postsPerPage)
    • Method Detail

      • getNumberOfPages

        public int getNumberOfPages()
      • getNextFileName

        public java.lang.String getNextFileName​(int currentPageNumber)
                                         throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
      • getPreviousFileName

        public java.lang.String getPreviousFileName​(int currentPageNumber)
                                             throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
      • getCurrentFileName

        public java.lang.String getCurrentFileName​(int page,
                                                   java.lang.String fileName)
                                            throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException