org.kde.koala
Class KMimeMagicResult

java.lang.Object
  extended by org.kde.koala.KMimeMagicResult
All Implemented Interfaces:
org.kde.qt.QtSupport

public class KMimeMagicResult
extends java.lang.Object
implements org.kde.qt.QtSupport

May be removed in KDE 4.0. Returned by KMimeMagic find...Type methods. It contains the mimetype and the encoding of the file or buffer read.


Constructor Summary
  KMimeMagicResult()
           
protected KMimeMagicResult(java.lang.Class dummy)
           
 
Method Summary
 int accuracy()
          Retrieve the accuracy of the matching.
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
protected  void finalize()
          Deletes the wrapped C++ instance
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
 boolean isValid()
          Returns whether the result is valid (i.e.
 java.lang.String mimeType()
          Retrieve the mimetype (e.g.
 void setAccuracy(int _accuracy)
           
 void setInvalid()
           
 void setMimeType(java.lang.String _mime)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KMimeMagicResult

protected KMimeMagicResult(java.lang.Class dummy)

KMimeMagicResult

public KMimeMagicResult()
Method Detail

mimeType

public java.lang.String mimeType()
Retrieve the mimetype (e.g. "text/html") of the file or buffer parsed.


accuracy

public int accuracy()
Retrieve the accuracy of the matching.


isValid

public boolean isValid()
Returns whether the result is valid (i.e. mimetype not empty).


setMimeType

public void setMimeType(java.lang.String _mime)

setAccuracy

public void setAccuracy(int _accuracy)

setInvalid

public void setInvalid()

finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.InternalError

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()


isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?