Uses of Class
net.sourceforge.pmd.lang.document.TextFileContent
-
Packages that use TextFileContent Package Description net.sourceforge.pmd.lang.document 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 TextFileContent Modifier and Type Method Description static @NonNull TextFileContent
TextFileContent. fromCharSeq(CharSequence text)
Normalize the line endings of the text to "\n", returns aTextFileContent
containing the original line ending.static TextFileContent
TextFileContent. fromInputStream(InputStream inputStream, Charset sourceEncoding)
Reads the contents of the input stream into a TextFileContent.static TextFileContent
TextFileContent. fromReader(Reader reader)
Read the reader fully and produce aTextFileContent
.TextFileContent
TextFile. readContents()
Reads the contents of the underlying character source.Methods in net.sourceforge.pmd.lang.document with parameters of type TextFileContent Modifier and Type Method Description default void
TextFile. writeContents(TextFileContent content)
Writes the given content to the underlying character store.
-