Uses of Class
net.sourceforge.pmd.lang.document.TextFileContent
Packages that use TextFileContent
Package
Description
Contains types to model text files and handle operations on text.
-
Uses of TextFileContent in net.sourceforge.pmd.lang.document
Methods in net.sourceforge.pmd.lang.document that return TextFileContentModifier and TypeMethodDescriptionstatic @NonNull TextFileContentTextFileContent.fromCharSeq(CharSequence text) Normalize the line endings of the text to "\n", returns aTextFileContentcontaining the original line ending.static TextFileContentTextFileContent.fromInputStream(InputStream inputStream, Charset sourceEncoding) Reads the contents of the input stream into a TextFileContent.static TextFileContentTextFileContent.fromReader(Reader reader) Read the reader fully and produce aTextFileContent.TextFile.readContents()Reads the contents of the underlying character source.Methods in net.sourceforge.pmd.lang.document with parameters of type TextFileContentModifier and TypeMethodDescriptiondefault voidTextFile.writeContents(TextFileContent content) Writes the given content to the underlying character store.