org.kde.koala
public class KMimeMagic extends Object implements QtSupport
find...Type
() methods.
UNKNOWN:
Constructor Summary | |
---|---|
protected | KMimeMagic(Class dummy) |
KMimeMagic()
Create a parser and initialize it with the KDE-global data:
the "magic" config file as well as the snippets from share/config/magic. | |
KMimeMagic(String configFile)
Create a parser and initialize it with the given config file. |
Method Summary | |
---|---|
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
KMimeMagicResult | findBufferFileType(byte[] arg1, String filename)
Same functionality as findBufferType() but with
additional capability of distinguishing between
C-headers and C-Source.
|
KMimeMagicResult | findBufferType(byte[] p)
Same functionality as above, except data is not
read from a file.
|
KMimeMagicResult | findFileType(String _filename)
Try to find a MimeType for the given file.
|
protected static void | initStatic() |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | mergeBufConfig(String arg1)
Merge an existing parse table with the data from the
given buffer. |
boolean | mergeConfig(String configFile)
Merge an existing parse table with the data from the
given file. |
static KMimeMagic | self()
Returns a pointer to the unique KMimeMagic instance in this process. |
void | setFollowLinks(boolean _enable)
Enable/Disable follow-links.
|
UNKNOWN: Create a parser and initialize it with the KDE-global data: the "magic" config file as well as the snippets from share/config/magic.
UNKNOWN: Create a parser and initialize it with the given config file.
Returns: A pointer to the result object. Do @em not delete the result object. After another call to KMimeMagic the returned result object changes its value since it is reused by KMimeMagic.
UNKNOWN: Same functionality as findBufferType() but with additional capability of distinguishing between C-headers and C-Source.
Returns: A pointer to the result object. Do @em not delete the result object. After another call to KMimeMagic the returned result object changes its value since it is reused by KMimeMagic.
UNKNOWN: Same functionality as above, except data is not read from a file.
Returns: A pointer to the result object. Do @em not delete the result object. After another call to KMimeMagic the returned result object changes its value since it is reused by KMimeMagic.
UNKNOWN: Try to find a MimeType for the given file.
Returns: true
on success.
UNKNOWN: Merge an existing parse table with the data from the given buffer.
Returns: true
on success.
UNKNOWN: Merge an existing parse table with the data from the given file.
UNKNOWN: Returns a pointer to the unique KMimeMagic instance in this process.
UNKNOWN: Enable/Disable follow-links.