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

Quick Search    Search Deep

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

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

public class RemoteImportFile
extends java.lang.Object
implements ImportFileIfc


Field Summary
private  java.lang.String myID
           
private  PlayerDatabase myRemoteDB
           
private  int myRemoteFID
           
private  AbstractFIDNode myRemoteNode
           
 
Constructor Summary
RemoteImportFile(AbstractFIDNode _remoteNode)
           
RemoteImportFile(PlayerDatabase _remoteDB, int _remoteFID)
           
 
Method Summary
 NodeTags createNodeTags(PlayerDatabase _db)
           
protected  byte[] getBytes()
           
 ImportFileIfc[] getChildren()
           
 java.lang.Object getID()
           
 java.io.InputStream getInputStream()
           
 long getLength()
           
 java.lang.String getName()
           
protected  AbstractFIDNode getNode()
           
 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

myID

private java.lang.String myID

myRemoteDB

private PlayerDatabase myRemoteDB

myRemoteNode

private AbstractFIDNode myRemoteNode

myRemoteFID

private int myRemoteFID
Constructor Detail

RemoteImportFile

public RemoteImportFile(AbstractFIDNode _remoteNode)
                 throws java.io.IOException

RemoteImportFile

public RemoteImportFile(PlayerDatabase _remoteDB,
                        int _remoteFID)
                 throws java.io.IOException
Method Detail

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

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

createNodeTags

public NodeTags createNodeTags(PlayerDatabase _db)
Specified by:
createNodeTags 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

getBytes

protected byte[] getBytes()
                   throws java.io.IOException

getNode

protected AbstractFIDNode getNode()

isContainer

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

getChildren

public ImportFileIfc[] getChildren()
                            throws java.io.IOException
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()).