Class EmptyResource

    • Field Detail

      • INSTANCE

        public static final EmptyResource INSTANCE
        The singleton instance
    • Constructor Detail

      • EmptyResource

        public EmptyResource()
    • Method Detail

      • append

        public Resource append​(byte[] byteArray)
                        throws IOException
        Description copied from interface: Resource

        Appends the given byte array content to the resource.

        Specified by:
        append in interface Resource
        Parameters:
        byteArray - The content to append
        Returns:
        the resource
        Throws:
        IOException - the io exception
      • exists

        public boolean exists()
        Description copied from interface: Resource
        Exists boolean.
        Specified by:
        exists in interface Resource
        Returns:
        True if the resource exists, False if the resource does not exist.
      • canWrite

        public boolean canWrite()
        Description copied from interface: Resource
        Returns true if the resource is writable, false if not.
        Specified by:
        canWrite in interface Resource
        Overrides:
        canWrite in class BaseResource
        Returns:
        True if can write to the resource
      • canRead

        public boolean canRead()
        Description copied from interface: Resource
        Returns true if the resource is readable, false if not.
        Specified by:
        canRead in interface Resource
        Overrides:
        canRead in class BaseResource
        Returns:
        True if can read from the resource