Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jempeg.empeg.emptool
Class LocalImportFile  view LocalImportFile download LocalImportFile.java

java.lang.Object
  extended byorg.jempeg.empeg.emptool.LocalImportFile
All Implemented Interfaces:
ImportFileIfc

public class LocalImportFile
extends java.lang.Object
implements ImportFileIfc


Field Summary
private  java.io.File myFile
           
private  java.lang.String myName
           
 
Constructor Summary
LocalImportFile(java.io.File _file)
           
LocalImportFile(java.lang.String _name, java.io.File _file)
           
 
Method Summary
static ImportFileIfc[] createImportFiles(java.io.File[] _files)
           
 NodeTags createNodeTags(PlayerDatabase _db)
           
 ImportFileIfc[] getChildren()
           
 java.io.File getFile()
           
 java.lang.Object getID()
           
 java.io.InputStream getInputStream()
           
 long getLength()
           
 java.lang.String getName()
           
 org.jempeg.empeg.core.SeekableInputStream getSeekableInputStream()
           
 void identify(AbstractFIDNode _node)
          Identifies a file and sets all the appropriate tags on the given node.
 boolean isContainer()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myFile

private java.io.File myFile

myName

private java.lang.String myName
Constructor Detail

LocalImportFile

public LocalImportFile(java.io.File _file)

LocalImportFile

public LocalImportFile(java.lang.String _name,
                       java.io.File _file)
Method Detail

createImportFiles

public static ImportFileIfc[] createImportFiles(java.io.File[] _files)

getFile

public java.io.File getFile()

getID

public java.lang.Object getID()
Specified by:
getID in interface ImportFileIfc

getName

public java.lang.String getName()
Specified by:
getName in interface ImportFileIfc

getLength

public long getLength()
Specified by:
getLength in interface ImportFileIfc

createNodeTags

public NodeTags createNodeTags(PlayerDatabase _db)
Specified by:
createNodeTags in interface ImportFileIfc

identify

public void identify(AbstractFIDNode _node)
              throws java.io.IOException
Identifies a file and sets all the appropriate tags on the given node. For instance, this will grab ID3 tags from MP3's.

Specified by:
identify in interface ImportFileIfc

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Specified by:
getInputStream in interface ImportFileIfc

getSeekableInputStream

public org.jempeg.empeg.core.SeekableInputStream getSeekableInputStream()
                                                                 throws java.io.IOException
Specified by:
getSeekableInputStream in interface ImportFileIfc

isContainer

public boolean isContainer()
Specified by:
isContainer in interface ImportFileIfc

getChildren

public ImportFileIfc[] getChildren()
Specified by:
getChildren in interface ImportFileIfc

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).