JavaFFS class implements support for Java properties files. More...
Public Member Functions | |
supportsFuzzy () | |
Query the capabilities of this FFS. | |
getFileExtensions () | |
Return the commonly used file extensions for these formats. | |
__construct (FileBasedMessageGroup $group) | |
readFromVariable ($data) | |
Static Public Member Functions | |
static | writeRow ($key, $sep, $value) |
Writes well-formed properties file row with key and value. | |
static | readRow ($line, $sep) |
Parses non-empty properties file row to key and value. | |
Public Attributes | |
$messages = $this->group->getMangler()->mangle( $messages ) | |
Protected Member Functions | |
doHeader (MessageCollection $collection) | |
doAuthors (MessageCollection $collection) | |
Protected Attributes | |
$keySeparator = '=' |
JavaFFS class implements support for Java properties files.
This class reads and writes only utf-8 files. Java projects need to run native2ascii on them before using them.
This class adds a new item into FILES section of group configuration: keySeparator
which defaults to '='.
Definition at line 12 of file JavaFFS.php.
JavaFFS::__construct | ( | FileBasedMessageGroup $ | group | ) |
$group | FileBasedMessageGroup |
Reimplemented from SimpleFFS.
Definition at line 26 of file JavaFFS.php.
JavaFFS::doAuthors | ( | MessageCollection $ | collection | ) | [protected] |
$collection | MessageCollection |
Definition at line 242 of file JavaFFS.php.
JavaFFS::doHeader | ( | MessageCollection $ | collection | ) | [protected] |
$collection | MessageCollection |
Definition at line 222 of file JavaFFS.php.
JavaFFS::getFileExtensions | ( | ) |
Return the commonly used file extensions for these formats.
Include the dot.
Reimplemented from SimpleFFS.
Definition at line 17 of file JavaFFS.php.
JavaFFS::readFromVariable | ( | $ | data | ) |
$data | array |
MWException |
Reimplemented from SimpleFFS.
Definition at line 41 of file JavaFFS.php.
static JavaFFS::readRow | ( | $ | line, | |
$ | sep | |||
) | [static] |
Parses non-empty properties file row to key and value.
string | $line | |
string | $sep |
Definition at line 165 of file JavaFFS.php.
Referenced by readFromVariable(), and JavaFFSTest::testRowRoundtrip().
JavaFFS::supportsFuzzy | ( | ) |
Query the capabilities of this FFS.
Allowed values are:
Reimplemented from SimpleFFS.
Definition at line 13 of file JavaFFS.php.
static JavaFFS::writeRow | ( | $ | key, | |
$ | sep, | |||
$ | value | |||
) | [static] |
Writes well-formed properties file row with key and value.
string | $key | |
string | $sep | |
string | $value |
Definition at line 147 of file JavaFFS.php.
Referenced by JavaFFSTest::testRowRoundtrip().
JavaFFS::$keySeparator = '=' [protected] |
Definition at line 21 of file JavaFFS.php.
JavaFFS::$messages = $this->group->getMangler()->mangle( $messages ) |
Definition at line 90 of file JavaFFS.php.
Referenced by readFromVariable().