public abstract static class FileEntry.Format extends FileEntry
createFormat(org.openide.filesystems.FileObject, java.lang.String, java.lang.String) and return a valid text format that
will be used for converting the lines of the original file
to lines in the newly created one.FileEntry.Folder, FileEntry.Format, FileEntry.Numb| Constructor | Description |
|---|---|
Format(MultiDataObject obj,
org.openide.filesystems.FileObject fo) |
Create a new entry initially attached to a given file object.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract java.text.Format |
createFormat(org.openide.filesystems.FileObject target,
java.lang.String n,
java.lang.String e) |
Provide a suitable format for
substitution of lines.
|
org.openide.filesystems.FileObject |
createFromTemplate(org.openide.filesystems.FileObject f,
java.lang.String name) |
Called when the entry is to be created from a template.
|
equals, getDataObject, getFile, hashCode, isImportant, isLocked, takeLock, writeReplacepublic Format(MultiDataObject obj, org.openide.filesystems.FileObject fo)
obj - the data object this entry belongs tofo - the file object for the entrypublic org.openide.filesystems.FileObject createFromTemplate(org.openide.filesystems.FileObject f,
java.lang.String name)
throws java.io.IOException
MultiDataObject.EntryFileObject,
or do nothing (if it cannot be copied).createFromTemplate in class FileEntryf - the folder to create this entry inname - the new name to useFileObject or null if it cannot be copiedjava.io.IOException - when the operation failsprotected abstract java.text.Format createFormat(org.openide.filesystems.FileObject target,
java.lang.String n,
java.lang.String e)
target - the target folder of the installationn - the name the file will havee - the extension the file will haveBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.