Interface ReadOnlyResource

    • Method Detail

      • canWrite

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

        default boolean canRead()
        Description copied from interface: Resource
        Returns true if the resource is readable, false if not.
        Specified by:
        canRead in interface Resource
        Returns:
        True if can read from the resource
      • append

        default 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