org.kde.koala
public class KShred extends QObject
UNKNOWN:
| Constructor Summary | |
|---|---|
| protected | KShred(Class dummy) |
| KShred(String fileName)
Initialize the class using the name of the file to 'shred'. | |
| Method Summary | |
|---|---|
| String | className() |
| void | dispose() Delete the wrapped C++ instance ahead of finalize() |
| boolean | fill0s()
Writes all 0's over the entire file and flushes the file buffers. |
| boolean | fill1s()
Writes all 1's over the entire file and flushes the file buffers. |
| boolean | fillbyte(int arg1)
Writes the specified byte over the entire file and flushes the file buffers. |
| boolean | fillpattern(short pattern, int size)
Writes the specified byte array over the entire file and flushes the file buffers. |
| boolean | fillrandom()
Writes random bites over the entire file and flushes the file buffers. |
| protected void | finalize() Deletes the wrapped C++ instance |
| boolean | isDisposed() Has the wrapped C++ instance been deleted? |
| QMetaObject | metaObject() |
| boolean | shred()
Shreds a file by writing a series of values over it (uses
#fill0s, then fill1s, then fillrandom, then
fillbyte with 0101..., then fillbyte with 1010.... |
| static boolean | shred(String fileName)
The simplest method to shred a file.
|
Parameters: fileName fully qualified name of the file to shred.
UNKNOWN: Initialize the class using the name of the file to 'shred'.
Returns: true on success, false on error (invalid filename or write error)
UNKNOWN: Writes all 0's over the entire file and flushes the file buffers.
Returns: true on success, false on error (invalid filename or write error)
UNKNOWN: Writes all 1's over the entire file and flushes the file buffers.
Parameters: byte the value to write over every byte of the file
Returns: true on success, false on error (invalid filename or write error)
UNKNOWN: Writes the specified byte over the entire file and flushes the file buffers.
Parameters: pattern the value to write over the entire file size the length of the 'pattern' byte array
Returns: true on success, false on error (invalid filename or write error)
UNKNOWN: Writes the specified byte array over the entire file and flushes the file buffers.
Returns: true on success, false on error (invalid filename or write error)
UNKNOWN: Writes random bites over the entire file and flushes the file buffers.
Returns: true on success, false on error (invalid filename or write error)
UNKNOWN: Shreds a file by writing a series of values over it (uses #fill0s, then fill1s, then fillrandom, then fillbyte with 0101.
Parameters: fileName fully qualified name of the file to shred.
UNKNOWN: The simplest method to shred a file.