org.kde.qt
Class QFile
java.lang.Object
org.kde.qt.QIODevice
org.kde.qt.QFile
- All Implemented Interfaces:
- QIODeviceInterface, QtSupport
public class QFile
- extends QIODevice
Fields inherited from class org.kde.qt.QIODevice |
IO_AbortError, IO_Append, IO_Async, IO_Combined, IO_ConnectError, IO_Direct, IO_FatalError, IO_ModeMask, IO_Ok, IO_Open, IO_OpenError, IO_Raw, IO_ReadError, IO_ReadOnly, IO_ReadWrite, IO_ResourceError, IO_Sequential, IO_StateMask, IO_TimeOutError, IO_Translate, IO_Truncate, IO_TypeMask, IO_UnspecifiedError, IO_WriteError, IO_WriteOnly |
Constructor Summary |
|
QFile()
|
protected |
QFile(java.lang.Class dummy)
|
|
QFile(java.lang.String name)
|
Method Summary |
long |
at()
|
boolean |
at(long arg1)
|
boolean |
atEnd()
|
void |
close()
|
static java.lang.String |
decodeName(java.lang.String localFileName)
|
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
static java.lang.String |
encodeName(java.lang.String fileName)
|
java.lang.String |
errorString()
|
boolean |
exists()
|
static boolean |
exists(java.lang.String fileName)
|
protected void |
finalize()
Deletes the wrapped C++ instance |
void |
flush()
|
int |
getch()
|
int |
handle()
|
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
java.lang.String |
name()
|
boolean |
open(int arg1)
|
boolean |
open(int arg1,
int arg2)
|
int |
putch(int arg1)
|
long |
readBlock(java.lang.StringBuffer data,
long len)
|
long |
readLine(java.lang.StringBuffer arg1,
long maxlen)
|
long |
readLine(java.lang.String data,
long maxlen)
|
boolean |
remove()
|
static boolean |
remove(java.lang.String fileName)
|
protected void |
setErrorString(java.lang.String arg1)
|
void |
setName(java.lang.String name)
|
long |
size()
|
int |
ungetch(int arg1)
|
long |
writeBlock(byte[] data)
|
long |
writeBlock(java.lang.String data,
long len)
|
Methods inherited from class org.kde.qt.QIODevice |
flags, isAsynchronous, isBuffered, isCombinedAccess, isDirectAccess, isInactive, isOpen, isRaw, isReadable, isReadWrite, isSequentialAccess, isSynchronous, isTranslated, isWritable, mode, readAll, reset, resetStatus, state, status |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QFile
protected QFile(java.lang.Class dummy)
QFile
public QFile()
QFile
public QFile(java.lang.String name)
name
public java.lang.String name()
setName
public void setName(java.lang.String name)
exists
public boolean exists()
remove
public boolean remove()
open
public boolean open(int arg1)
- Specified by:
open
in interface QIODeviceInterface
- Overrides:
open
in class QIODevice
open
public boolean open(int arg1,
int arg2)
close
public void close()
- Specified by:
close
in interface QIODeviceInterface
- Overrides:
close
in class QIODevice
flush
public void flush()
- Specified by:
flush
in interface QIODeviceInterface
- Overrides:
flush
in class QIODevice
size
public long size()
- Specified by:
size
in interface QIODeviceInterface
- Overrides:
size
in class QIODevice
at
public long at()
- Specified by:
at
in interface QIODeviceInterface
- Overrides:
at
in class QIODevice
at
public boolean at(long arg1)
- Specified by:
at
in interface QIODeviceInterface
- Overrides:
at
in class QIODevice
atEnd
public boolean atEnd()
- Specified by:
atEnd
in interface QIODeviceInterface
- Overrides:
atEnd
in class QIODevice
readBlock
public long readBlock(java.lang.StringBuffer data,
long len)
- Specified by:
readBlock
in interface QIODeviceInterface
- Overrides:
readBlock
in class QIODevice
writeBlock
public long writeBlock(java.lang.String data,
long len)
- Specified by:
writeBlock
in interface QIODeviceInterface
- Overrides:
writeBlock
in class QIODevice
writeBlock
public long writeBlock(byte[] data)
- Specified by:
writeBlock
in interface QIODeviceInterface
- Overrides:
writeBlock
in class QIODevice
readLine
public long readLine(java.lang.String data,
long maxlen)
- Specified by:
readLine
in interface QIODeviceInterface
- Overrides:
readLine
in class QIODevice
readLine
public long readLine(java.lang.StringBuffer arg1,
long maxlen)
getch
public int getch()
- Specified by:
getch
in interface QIODeviceInterface
- Overrides:
getch
in class QIODevice
putch
public int putch(int arg1)
- Specified by:
putch
in interface QIODeviceInterface
- Overrides:
putch
in class QIODevice
ungetch
public int ungetch(int arg1)
- Specified by:
ungetch
in interface QIODeviceInterface
- Overrides:
ungetch
in class QIODevice
handle
public int handle()
errorString
public java.lang.String errorString()
encodeName
public static java.lang.String encodeName(java.lang.String fileName)
decodeName
public static java.lang.String decodeName(java.lang.String localFileName)
exists
public static boolean exists(java.lang.String fileName)
remove
public static boolean remove(java.lang.String fileName)
setErrorString
protected void setErrorString(java.lang.String arg1)
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?