Package org.drools.io

Class ByteArrayResource

    • Constructor Detail

      • ByteArrayResource

        public ByteArrayResource()
      • ByteArrayResource

        public ByteArrayResource​(byte[] bytes)
      • ByteArrayResource

        public ByteArrayResource​(byte[] bytes,
                                 java.lang.String encoding)
    • Method Detail

      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Overrides:
        readExternal in class BaseResource
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class BaseResource
        Throws:
        java.io.IOException
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Specified by:
        getInputStream in interface org.kie.api.io.Resource
        Throws:
        java.io.IOException
      • getReader

        public java.io.Reader getReader()
                                 throws java.io.IOException
        Specified by:
        getReader in interface org.kie.api.io.Resource
        Throws:
        java.io.IOException
      • getURL

        public java.net.URL getURL()
                            throws java.io.IOException
        Specified by:
        getURL in interface InternalResource
        Throws:
        java.io.IOException
      • listResources

        public java.util.Collection<org.kie.api.io.Resource> listResources()
        Specified by:
        listResources in interface InternalResource
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class BaseResource