Class TextFileBuilder

  • public abstract class TextFileBuilder
    extends Object
    A builder for a new text file. See static methods on TextFile.
    • Field Detail

      • displayName

        protected @Nullable String displayName
    • Method Detail

      • asReadOnly

        public TextFileBuilder asReadOnly()
        Specify that the built file is read only. Some text files are always read-only.
        This builder
      • withDisplayName

        public TextFileBuilder withDisplayName​(@Nullable String displayName)
        Sets a custom display name for the new file. If null, or this is never called, the display name defaults to the path ID.
        displayName - A display name
        This builder
      • build

        public abstract TextFile build()
        Creates and returns the new text file.