public class File extends MBScriptableObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
kServerTypeAttribute
Deprecated.
Server type variable name in the global scope.
|
Constructor and Description |
---|
File()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
jsConstructor(java.lang.String thePathName)
Deprecated.
JavaScript constructor by file path name.
|
boolean |
(JavaScript Function) createNewFile()
Deprecated.
|
boolean |
(JavaScript Function) createNewFolder()
Deprecated.
|
BufferedReader |
(JavaScript Function) deepFileCount()
Deprecated.
Returns a BufferedReader for reading the file contents.
|
int |
(JavaScript Function) deepFileCount(boolean theIncludeFolders)
Deprecated.
Gets number of files in the given directory or returns one if this File object represents single file.
|
void |
(JavaScript Function) forceRemove()
Deprecated.
Removes the folder including subfolders.
|
BufferedWriter |
(JavaScript Function) getBufferedWriter(boolean theAppend,
java.lang.String theEncoding)
Deprecated.
Returns a BufferedWriter for writing the file contents.
|
java.lang.String[] |
(JavaScript Function) getFilesByDirectory()
Deprecated.
Gets all files that are located in the current directory (including subdirectories).
|
void |
(JavaScript Function) writeContents(java.lang.String theFileContent)
Deprecated.
|
boolean |
(JavaScript Function) writeXmp()
Deprecated.
Saves xmp changes to physical file.
|
java.lang.String |
(JavaScript Getter) absolute()
Deprecated.
|
File |
(JavaScript Getter) absolutePath()
Deprecated.
Returns the absolute path to this file.
|
java.lang.String |
(JavaScript Getter) colorprofile()
Deprecated.
|
java.lang.String |
(JavaScript Getter) colorspace()
Deprecated.
|
java.lang.String |
(JavaScript Getter) customName()
Deprecated.
Javascript method to get the custom name applied to the uploaded file on the upload target.
|
boolean |
(JavaScript Getter) exists()
Deprecated.
|
java.lang.String |
(JavaScript Getter) fileNameExtension()
Deprecated.
Returns the file name extension by parsing the file's name.
|
java.lang.String |
(JavaScript Getter) format()
Deprecated.
|
java.lang.String |
(JavaScript Getter) getFileContents()
Deprecated.
|
java.lang.String |
(JavaScript Getter) getFileNames()
Deprecated.
|
int |
(JavaScript Getter) height()
Deprecated.
|
long |
(JavaScript Getter) length()
Deprecated.
|
java.lang.String |
(JavaScript Getter) name()
Deprecated.
|
File |
(JavaScript Getter) parent()
Deprecated.
|
java.lang.String |
(JavaScript Getter) path()
Deprecated.
|
java.lang.Double |
(JavaScript Getter) resolution()
Deprecated.
Get image resolution.
|
boolean |
(JavaScript Getter) valid()
Deprecated.
Is this file valid, according to M3TAForms Desktop validation?
|
int |
(JavaScript Getter) width()
Deprecated.
|
Xmp |
(JavaScript Getter) xmp()
Deprecated.
Gets XMP block from the file.
|
void |
(JavaScript Setter) customName(java.lang.String theNewName)
Deprecated.
Javascript method which sets the custom name for the file to be applied on upload.
|
void |
(JavaScript Setter) valid(boolean theFlag)
Deprecated.
Set that this file is valid, according to M3TAForms Desktop validation.
|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isConst, isEmpty, isExtensible, isSealed, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public static final java.lang.String kServerTypeAttribute
public void jsConstructor(java.lang.String thePathName)
thePathName
- the file path namepublic boolean (JavaScript Getter) valid()
public void (JavaScript Setter) valid(boolean theFlag)
theFlag
- true if validpublic boolean (JavaScript Getter) exists()
File.exists()
public java.lang.String (JavaScript Getter) name()
File.getName()
public java.lang.String (JavaScript Getter) fileNameExtension()
public java.lang.String (JavaScript Getter) path()
File.getPath()
public File (JavaScript Getter) parent()
File.getParent()
public boolean (JavaScript Function) createNewFile()
File.createNewFile()
public boolean (JavaScript Function) createNewFolder()
File.mkdirs()
public File (JavaScript Getter) absolutePath()
File.getAbsolutePath()
public java.lang.String (JavaScript Getter) absolute()
File.getAbsolutePath()
public long (JavaScript Getter) length()
File.length()
public Xmp (JavaScript Getter) xmp()
public int (JavaScript Function) deepFileCount(boolean theIncludeFolders)
theIncludeFolders
- include folder in the count or not@Deprecated public java.lang.String (JavaScript Getter) getFileContents()
public BufferedReader (JavaScript Function) deepFileCount() throws java.io.IOException
java.io.IOException
BufferedReader
public BufferedWriter (JavaScript Function) getBufferedWriter(boolean theAppend, java.lang.String theEncoding) throws java.io.IOException
theAppend
- true if file should be opened for appendtheEncoding
- default is UTF-8, can pass others (like UTF-16)java.io.IOException
BufferedWriter
@Deprecated public void (JavaScript Function) writeContents(java.lang.String theFileContent)
theFileContent
- The text to write to the file.public java.lang.String (JavaScript Getter) getFileNames()
public java.lang.String[] (JavaScript Function) getFilesByDirectory()
public void (JavaScript Function) forceRemove()
public boolean (JavaScript Function) writeXmp()
public int (JavaScript Getter) width()
public int (JavaScript Getter) height()
public java.lang.String (JavaScript Getter) format()
public java.lang.String (JavaScript Getter) colorspace()
public java.lang.String (JavaScript Getter) colorprofile()
public java.lang.Double (JavaScript Getter) resolution()
public java.lang.String (JavaScript Getter) customName()
public void (JavaScript Setter) customName(java.lang.String theNewName)
theNewName
- the name to be appliedCopyright © 2017 MediaBeacon, Inc. All Rights Reserved.