Class TextResourceBase

  • java.lang.Object
    • com.groupdocs.editor.htmlcss.resources.textual.TextResourceBase
    • Field Detail

      • Disposed

        public final<> Disposed
    • Constructor Detail

      • TextResourceBase

        public TextResourceBase(String name,
      • TextResourceBase

        public TextResourceBase(String name,
                        String textualContent,
    • Method Detail

      • dispose

        public final void dispose()

        Disposes this text resource, disposing its content and making most methods and properties non-working

        Specified by:
        dispose in interface
      • equals

        public final boolean equals(IHtmlResource other)

        Checks this instance with specified on equality.

        other - Other HTML resource of unknown type, that is also presumable TextResourceBase inheritor
        Returns true if are equal, or false if are unequal
      • getByteContent

        public final InputStream getByteContent()

        Returns content of this text resource as byte stream with original encoding

        Specified by:
        getByteContent in interface IHtmlResource
      • getEncoding

        public final Charset getEncoding()

        Returns encoding of this textual resource. Usually returns UTF-8.

      • getEncodingInternal

        public getEncodingInternal()
      • getFilenameWithExtension

        public final String getFilenameWithExtension()

        Returns correct filename of this text resource, which consists of name and extension

        Specified by:
        getFilenameWithExtension in interface IHtmlResource
      • getName

        public final String getName()

        Returns name of this text resource without file extension

        Specified by:
        getName in interface IHtmlResource
      • getTextContent

        public final String getTextContent()

        Returns content of this text resource as a standard string

        Specified by:
        getTextContent in interface IHtmlResource
      • getType

        public abstract TextType getType()

        In implementing type should return information about type of the text resource

        Specified by:
        getType in interface IHtmlResource
      • isDisposed

        public final boolean isDisposed()

        Determines whether this text resource is disposed or not

        Specified by:
        isDisposed in interface IAuxDisposable
      • save

        public final void save(String fullPathToFile)

        Saves this text resource to the specified file

        Specified by:
        save in interface IHtmlResource
        fullPathToFile - Full path to the file, which will be created or rewritten if already exists