
public class JsEntry extends JsElementalMixinBase implements Entry
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
JsEntry() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyTo(DirectoryEntry parent)
Copy an entry to a different location on the file system.
|
void |
copyTo(DirectoryEntry parent,
String name)
Copy an entry to a different location on the file system.
|
void |
copyTo(DirectoryEntry parent,
String name,
EntryCallback successCallback)
Copy an entry to a different location on the file system.
|
void |
copyTo(DirectoryEntry parent,
String name,
EntryCallback successCallback,
ErrorCallback errorCallback)
Copy an entry to a different location on the file system.
|
JsDOMFileSystem |
getFilesystem()
The file system on which the entry resides.
|
String |
getFullPath() |
void |
getMetadata(MetadataCallback successCallback)
Look up metadata about this entry.
|
void |
getMetadata(MetadataCallback successCallback,
ErrorCallback errorCallback)
Look up metadata about this entry.
|
String |
getName()
The name of the entry, excluding the path leading to it.
|
void |
getParent()
Look up the parent
DirectoryEntry containing this entry. |
void |
getParent(EntryCallback successCallback)
Look up the parent
DirectoryEntry containing this entry. |
void |
getParent(EntryCallback successCallback,
ErrorCallback errorCallback)
Look up the parent
DirectoryEntry containing this entry. |
boolean |
isDirectory()
The entry is a directory.
|
boolean |
isFile()
The entry is a file.
|
void |
moveTo(DirectoryEntry parent)
Move an entry to a different location on the file system.
|
void |
moveTo(DirectoryEntry parent,
String name)
Move an entry to a different location on the file system.
|
void |
moveTo(DirectoryEntry parent,
String name,
EntryCallback successCallback)
Move an entry to a different location on the file system.
|
void |
moveTo(DirectoryEntry parent,
String name,
EntryCallback successCallback,
ErrorCallback errorCallback)
Move an entry to a different location on the file system.
|
void |
remove(VoidCallback successCallback)
Deletes a file or directory.
|
void |
remove(VoidCallback successCallback,
ErrorCallback errorCallback)
Deletes a file or directory.
|
String |
toURL()
Returns a URL that can be used to identify this entry.
|
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPanat, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAtcast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringintAt, lengthnumberAtpublic final JsDOMFileSystem getFilesystem()
EntrygetFilesystem in interface Entrypublic final String getFullPath()
getFullPath in interface Entrypublic final boolean isDirectory()
EntryisDirectory in interface Entrypublic final boolean isFile()
Entrypublic final String getName()
Entrypublic final void copyTo(DirectoryEntry parent)
EntryCopy an entry to a different location on the file system. You cannot copy an entry inside itself if it is a directory nor can you copy it into its parent if a name different from its current one isn't provided. Directory copies are always recursive—that is, they copy all contents of the directory.
void vopyTo ( (in DirectoryEntry parent, optional DOMString newName, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
voidpublic final void copyTo(DirectoryEntry parent, String name)
EntryCopy an entry to a different location on the file system. You cannot copy an entry inside itself if it is a directory nor can you copy it into its parent if a name different from its current one isn't provided. Directory copies are always recursive—that is, they copy all contents of the directory.
void vopyTo ( (in DirectoryEntry parent, optional DOMString newName, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
voidpublic final void copyTo(DirectoryEntry parent, String name, EntryCallback successCallback)
EntryCopy an entry to a different location on the file system. You cannot copy an entry inside itself if it is a directory nor can you copy it into its parent if a name different from its current one isn't provided. Directory copies are always recursive—that is, they copy all contents of the directory.
void vopyTo ( (in DirectoryEntry parent, optional DOMString newName, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
voidpublic final void copyTo(DirectoryEntry parent, String name, EntryCallback successCallback, ErrorCallback errorCallback)
EntryCopy an entry to a different location on the file system. You cannot copy an entry inside itself if it is a directory nor can you copy it into its parent if a name different from its current one isn't provided. Directory copies are always recursive—that is, they copy all contents of the directory.
void vopyTo ( (in DirectoryEntry parent, optional DOMString newName, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
voidpublic final void getMetadata(MetadataCallback successCallback)
EntryLook up metadata about this entry.
void getMetada ( in MetadataCallback ErrorCallback );
voidgetMetadata in interface Entrypublic final void getMetadata(MetadataCallback successCallback, ErrorCallback errorCallback)
EntryLook up metadata about this entry.
void getMetada ( in MetadataCallback ErrorCallback );
voidgetMetadata in interface Entrypublic final void getParent()
EntryLook up the parent DirectoryEntry containing this entry. If this entry is the root of its filesystem, its parent is itself.
void getParent ( (in EntryCallback successCallback, optional ErrorCallback errorCallback); );
voidpublic final void getParent(EntryCallback successCallback)
EntryLook up the parent DirectoryEntry containing this entry. If this entry is the root of its filesystem, its parent is itself.
void getParent ( (in EntryCallback successCallback, optional ErrorCallback errorCallback); );
voidpublic final void getParent(EntryCallback successCallback, ErrorCallback errorCallback)
EntryLook up the parent DirectoryEntry containing this entry. If this entry is the root of its filesystem, its parent is itself.
void getParent ( (in EntryCallback successCallback, optional ErrorCallback errorCallback); );
voidpublic final void moveTo(DirectoryEntry parent)
EntryMove an entry to a different location on the file system. You cannot do the following:
Moving a file over an existing file replaces that existing file. A move of a directory on top of an existing empty directory replaces that directory.
void moveTo ( (in DirectoryEntry parent, optional DOMString newName, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
voidpublic final void moveTo(DirectoryEntry parent, String name)
EntryMove an entry to a different location on the file system. You cannot do the following:
Moving a file over an existing file replaces that existing file. A move of a directory on top of an existing empty directory replaces that directory.
void moveTo ( (in DirectoryEntry parent, optional DOMString newName, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
voidpublic final void moveTo(DirectoryEntry parent, String name, EntryCallback successCallback)
EntryMove an entry to a different location on the file system. You cannot do the following:
Moving a file over an existing file replaces that existing file. A move of a directory on top of an existing empty directory replaces that directory.
void moveTo ( (in DirectoryEntry parent, optional DOMString newName, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
voidpublic final void moveTo(DirectoryEntry parent, String name, EntryCallback successCallback, ErrorCallback errorCallback)
EntryMove an entry to a different location on the file system. You cannot do the following:
Moving a file over an existing file replaces that existing file. A move of a directory on top of an existing empty directory replaces that directory.
void moveTo ( (in DirectoryEntry parent, optional DOMString newName, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
voidpublic final void remove(VoidCallback successCallback)
EntryDeletes a file or directory. You cannot delete an empty directory or the root directory of a filesystem.
void remove ( (in VoidCallback successCallback, optional ErrorCallback errorCallback); );
voidpublic final void remove(VoidCallback successCallback, ErrorCallback errorCallback)
EntryDeletes a file or directory. You cannot delete an empty directory or the root directory of a filesystem.
void remove ( (in VoidCallback successCallback, optional ErrorCallback errorCallback); );
voidpublic final String toURL()
EntryReturns a URL that can be used to identify this entry. It has no specific expiration. Bcause it describes a location on disk, it is valid for as long as that location exists. Users can supply mimeType to simulate the optional mime-type header associated with HTTP downloads.
DOMString toURL ( (in optional DOMString mimeType); );
DOMStringCopyright © 2016. All rights reserved.