public interface IFileObject
extends org.mozilla.javascript.Scriptable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
kServerTypeAttribute
Server type variable name in the global scope.
|
Modifier and Type | Method and Description |
---|---|
BufferedReader |
jsFunction_getBufferedReader(java.lang.String theEncoding)
Returns a BufferedReader for reading the file contents.
|
BufferedWriter |
jsFunction_getBufferedWriter(boolean theAppend,
java.lang.String theEncoding)
Returns a BufferedWriter for writing the file contents.
|
FileOutputStream |
jsFunction_getFileOutputStream()
Gets a FileOutputStream for writing the file contents.
|
boolean |
jsFunction_writeXmp()
Saves xmp changes.
|
java.lang.String |
jsGet_base64()
Gets the bytes for this file and encodes it as a base64 string
|
java.lang.String |
jsGet_colorprofile()
Returns the colorprofile format.
|
java.lang.String |
jsGet_colorspace()
Returns the colorspace format.
|
org.mozilla.javascript.IdScriptableObject |
jsGet_errorMessage()
Gets error message that occurred during xmp writing.
|
boolean |
jsGet_exists()
Tests whether the file denoted by this abstract pathname exists.
|
java.lang.String |
jsGet_fileNameExtension()
Returns the file name extension by parsing the file's name.
|
java.lang.String |
jsGet_format()
Returns the image format.
|
java.lang.String |
jsGet_getFileContents()
Deprecated.
|
int |
jsGet_height()
Returns the image height.
|
long |
jsGet_lastModified()
Return file modified timestamp in milliseconds
|
long |
jsGet_length()
Returns the lenth of the file.
|
java.lang.String |
jsGet_name()
Returns the name of the file or directory.
|
IFolderObject |
jsGet_parent()
Returns the parent file o directory.
|
java.lang.String |
jsGet_path()
Returns the file's path.
|
java.lang.Double |
jsGet_resolution()
Returns the image resolution.
|
int |
jsGet_width()
Returns the image width.
|
Xmp |
jsGet_xmp()
Gets XMP block from the file.
|
static final java.lang.String kServerTypeAttribute
boolean jsGet_exists()
true
if the file or directory exists.long jsGet_lastModified()
java.lang.String jsGet_name()
java.lang.String jsGet_fileNameExtension()
java.lang.String jsGet_path()
IFolderObject jsGet_parent()
IFileObject
represents parent file or directory.long jsGet_length()
0L
if the file does not exist.boolean jsFunction_writeXmp() throws com.brightech.xmp.model.xmlmodel.MalformedXmpFieldException
com.brightech.xmp.model.xmlmodel.MalformedXmpFieldException
org.mozilla.javascript.IdScriptableObject jsGet_errorMessage()
int jsGet_width()
int jsGet_height()
java.lang.String jsGet_format()
java.lang.String jsGet_colorspace()
java.lang.String jsGet_colorprofile()
java.lang.Double jsGet_resolution()
@Deprecated java.lang.String jsGet_getFileContents()
BufferedReader jsFunction_getBufferedReader(java.lang.String theEncoding) throws java.io.IOException
java.io.IOException
BufferedReader
BufferedWriter jsFunction_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 jsFunction_getFileOutputStream() throws java.io.IOException
java.io.IOException
java.lang.String jsGet_base64()
Copyright © 2023 MediaBeacon, Inc. All Rights Reserved.