Methods Summary |
---|
public IFileSource | createTempFile(java.lang.String sPrefix, java.lang.String sSuffix)
File oTmpFile = File.createTempFile("id3.", ".tmp", m_oFile.getAbsoluteFile().getParentFile());
return new FileSource(oTmpFile);
|
public boolean | delete()
return m_oFile.delete();
|
public java.io.InputStream | getInputStream()
return new FileInputStream(m_oFile);
|
public java.lang.String | getName()
return m_oFile.getName();
|
public java.io.OutputStream | getOutputStream()
return new FileOutputStream(m_oFile);
|
public long | length()
return m_oFile.length();
|
public boolean | renameTo(java.lang.String sFilename)
return m_oFile.renameTo(new File(sFilename));
|
public boolean | renameTo(IFileSource oFileSource)
if ( ! (oFileSource instanceof FileSource))
{
throw new IOException("Cannot rename between different file source types.");
}
return m_oFile.renameTo(((FileSource)oFileSource).m_oFile);
|
public java.lang.String | toString()
return m_oFile.toString();
|