Class OutputStreamResource

    • Constructor Detail

      • OutputStreamResource

        public OutputStreamResource​(OutputStream stream)
        Instantiates a new Output stream resource.
        Parameters:
        stream - the output stream to wrap
    • Method Detail

      • 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.
      • 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