Class LibraryJSONContentHandler

    • Constructor Detail

      • LibraryJSONContentHandler

        public LibraryJSONContentHandler()
    • Method Detail

      • addItemProcessor

        public void addItemProcessor​(ItemProcessor processor)
      • addListProcessor

        public void addListProcessor​(ItemProcessor processor)
      • getRemoteLibraryId

        public Long getRemoteLibraryId()
        Remote library id, if available.
        Returns:
        library id
      • startObjectEntry

        public boolean startObjectEntry​(String key)
                                 throws org.json.simple.parser.ParseException,
                                        IOException
        Specified by:
        startObjectEntry in interface org.json.simple.parser.ContentHandler
        Overrides:
        startObjectEntry in class JSONContentHandler
        Throws:
        org.json.simple.parser.ParseException
        IOException
      • endObjectEntry

        public boolean endObjectEntry()
                               throws org.json.simple.parser.ParseException,
                                      IOException
        Specified by:
        endObjectEntry in interface org.json.simple.parser.ContentHandler
        Overrides:
        endObjectEntry in class JSONContentHandler
        Throws:
        org.json.simple.parser.ParseException
        IOException
      • endLibraryItems

        public void endLibraryItems()
      • startLibraryItems

        public void startLibraryItems()
      • endLibraryLists

        public void endLibraryLists()
      • startLibraryLists

        public void startLibraryLists()
      • processItem

        public boolean processItem​(Object object)
        Description copied from class: JSONContentHandler
        Overwrite this method to process specific objects.
        Overrides:
        processItem in class JSONContentHandler
        Parameters:
        object - object
        Returns:
        false to abort further processing
      • addObjectToContainer

        public boolean addObjectToContainer​(Object object)
        Description copied from class: JSONContentHandler
        Overwrite this method to prevent an object to be added to its surrounding container. This can be useful for inline processing to preserve memory.
        Overrides:
        addObjectToContainer in class JSONContentHandler
        Parameters:
        object - object
        Returns:
        false, if the given object should be added to the surrounding container.