public interface IFileObject
extends org.mozilla.javascript.Scriptable
Modifier and Type | Method and Description |
---|---|
BufferedReader |
(JavaScript Function) getBufferedReader(java.lang.String theEncoding)
Returns a BufferedReader for reading the file contents.
|
BufferedWriter |
(JavaScript Function) getBufferedWriter(boolean theAppend,
java.lang.String theEncoding)
Returns a BufferedWriter for writing the file contents.
|
FileOutputStream |
(JavaScript Function) getFileOutputStream()
Gets a FileOutputStream for writing the file contents.
|
boolean |
(JavaScript Function) writeXmp()
Saves xmp changes.
|
java.lang.String |
(JavaScript Getter) colorprofile()
Returns the colorprofile format.
|
java.lang.String |
(JavaScript Getter) colorspace()
Returns the colorspace format.
|
boolean |
(JavaScript Getter) exists()
Tests whether the file denoted by this abstract pathname exists.
|
java.lang.String |
(JavaScript Getter) fileNameExtension()
Returns the file name extension by parsing the file's name.
|
java.lang.String |
(JavaScript Getter) format()
Returns the image format.
|
java.lang.String |
(JavaScript Getter) getFileContents()
Deprecated.
|
int |
(JavaScript Getter) height()
Returns the image height.
|
long |
(JavaScript Getter) lastModified()
Return file modified timestamp in milliseconds
|
long |
(JavaScript Getter) length()
Returns the lenth of the file.
|
java.lang.String |
(JavaScript Getter) name()
Returns the name of the file or directory.
|
IFolderObject |
(JavaScript Getter) parent()
Returns the parent file o directory.
|
java.lang.String |
(JavaScript Getter) path()
Returns the file's path.
|
java.lang.Double |
(JavaScript Getter) resolution()
Returns the image resolution.
|
int |
(JavaScript Getter) width()
Returns the image width.
|
Xmp |
(JavaScript Getter) xmp()
Gets XMP block from the file.
|
boolean (JavaScript Getter) exists()
true
if the file or directory exists.long (JavaScript Getter) lastModified()
java.lang.String (JavaScript Getter) name()
java.lang.String (JavaScript Getter) fileNameExtension()
java.lang.String (JavaScript Getter) path()
IFolderObject (JavaScript Getter) parent()
IFileObject
represents parent file or directory.long (JavaScript Getter) length()
0L
if the file does not exist.Xmp (JavaScript Getter) xmp()
Xmp block.
Xmp
boolean (JavaScript Function) writeXmp() throws MalformedXmpFieldException
MalformedXmpFieldException
int (JavaScript Getter) width()
int (JavaScript Getter) height()
java.lang.String (JavaScript Getter) format()
java.lang.String (JavaScript Getter) colorspace()
java.lang.String (JavaScript Getter) colorprofile()
java.lang.Double (JavaScript Getter) resolution()
@Deprecated java.lang.String (JavaScript Getter) getFileContents()
BufferedReader (JavaScript Function) getBufferedReader(java.lang.String theEncoding) throws java.io.IOException
java.io.IOException
BufferedReader
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
FileOutputStream (JavaScript Function) getFileOutputStream() throws java.io.IOException
java.io.IOException
Copyright © 2017 MediaBeacon, Inc. All Rights Reserved.