#include <TaglibChannelFileIO.h>
Definition at line 74 of file TaglibChannelFileIO.h.
TagLibChannelFileIO::TagLibChannelFileIO |
( |
nsCString |
channelID, |
|
|
sbISeekableChannel * |
pSeekableChannel |
|
) |
| |
TagLibChannelFileIO::~TagLibChannelFileIO |
( |
| ) |
|
|
virtual |
void TagLibChannelFileIO::clear |
( |
| ) |
|
|
virtual |
bool TagLibChannelFileIO::closeTempFile |
( |
bool |
overwrite | ) |
|
|
virtual |
Close any previously allocated temporary files
- Parameters
-
overwrite | If true, will attempt to replace this file |
Definition at line 356 of file TaglibChannelFileIO.cpp.
nsresult TagLibChannelFileIO::Initialize |
( |
| ) |
|
void TagLibChannelFileIO::insert |
( |
const ByteVector & |
data, |
|
|
TagLib::ulong |
start = 0 , |
|
|
TagLib::ulong |
replace = 0 |
|
) |
| |
|
virtual |
Insert data at position start in the file overwriting replace bytes of the original content.
- Note
- This method is slow since it requires rewriting all of the file after the insertion point.
Definition at line 166 of file TaglibChannelFileIO.cpp.
bool TagLibChannelFileIO::isOpen |
( |
| ) |
const |
|
virtual |
Since the file can currently only be opened as an argument to the constructor (sort-of by design), this returns if that open succeeded.
Definition at line 208 of file TaglibChannelFileIO.cpp.
bool TagLibChannelFileIO::isReadable |
( |
| ) |
|
|
virtual |
bool TagLibChannelFileIO::isWritable |
( |
| ) |
|
|
virtual |
long TagLibChannelFileIO::length |
( |
| ) |
|
|
virtual |
FileName TagLibChannelFileIO::name |
( |
| ) |
const |
|
virtual |
ByteVector TagLibChannelFileIO::readBlock |
( |
TagLib::ulong |
length | ) |
|
|
virtual |
bool TagLibChannelFileIO::readOnly |
( |
| ) |
const |
|
virtual |
void TagLibChannelFileIO::removeBlock |
( |
TagLib::ulong |
start = 0 , |
|
|
TagLib::ulong |
length = 0 |
|
) |
| |
|
virtual |
Removes a block of the file starting a start and continuing for length bytes.
- Note
- This method is slow since it involves rewriting all of the file after the removed portion.
Definition at line 183 of file TaglibChannelFileIO.cpp.
int TagLibChannelFileIO::seek |
( |
long |
offset, |
|
|
File::Position |
p = File::Beginning |
|
) |
| |
|
virtual |
Move the I/O pointer to offset in the file from position p. This defaults to seeking from the beginning of the file.
- See Also
- Position
Definition at line 256 of file TaglibChannelFileIO.cpp.
long TagLibChannelFileIO::tell |
( |
| ) |
const |
|
virtual |
File * TagLibChannelFileIO::tempFile |
( |
| ) |
|
|
virtual |
void TagLibChannelFileIO::truncate |
( |
long |
length | ) |
|
|
protectedvirtual |
void TagLibChannelFileIO::writeBlock |
( |
const ByteVector & |
data | ) |
|
|
virtual |
Attempts to write the block data at the current get pointer. If the file is currently only opened read only – i.e. readOnly() returns true – this attempts to reopen the file in read/write mode.
- Note
- This should be used instead of using the streaming output operator for a ByteVector. And even this function is significantly slower than doing output with a char[].
Definition at line 151 of file TaglibChannelFileIO.cpp.
The documentation for this class was generated from the following files: