net.jxta.share
Class ContentManagerImpl
java.lang.Object
|
+--net.jxta.share.ContentManager
|
+--net.jxta.share.ContentManagerImpl
- public class ContentManagerImpl
- extends net.jxta.share.ContentManager
Method Summary |
net.jxta.share.Content[] |
getContent()
Returns all the shared Content. |
net.jxta.share.Content[] |
getContent(net.jxta.share.ContentFilter cf)
Returns all the shared Content accepted by the specified ContentFilter. |
net.jxta.share.Content[] |
getContent(net.jxta.share.ContentId id)
Returns all the shared Content for the specified content id. |
java.lang.String |
getMimeType(java.io.File file)
Returns the mime type of the specified file, or null if unknown. |
net.jxta.share.FileContent |
share(java.io.File file,
java.lang.String name,
java.lang.String type,
java.lang.String desc)
Shares the specified file. |
void |
unshare(net.jxta.share.Content c)
Unshares the specified Content object. |
Methods inherited from class net.jxta.share.ContentManager |
share,
share |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ContentManagerImpl
public ContentManagerImpl(java.io.File dir)
throws java.io.IOException
share
public net.jxta.share.FileContent share(java.io.File file,
java.lang.String name,
java.lang.String type,
java.lang.String desc)
throws java.io.IOException
- Shares the specified file.
- Overrides:
- share in class net.jxta.share.ContentManager
unshare
public void unshare(net.jxta.share.Content c)
throws java.io.IOException
- Unshares the specified Content object.
- Overrides:
- unshare in class net.jxta.share.ContentManager
getContent
public net.jxta.share.Content[] getContent()
- Returns all the shared Content.
- Overrides:
- getContent in class net.jxta.share.ContentManager
getContent
public net.jxta.share.Content[] getContent(net.jxta.share.ContentId id)
- Returns all the shared Content for the specified content id.
- Overrides:
- getContent in class net.jxta.share.ContentManager
getContent
public net.jxta.share.Content[] getContent(net.jxta.share.ContentFilter cf)
- Returns all the shared Content accepted by the specified ContentFilter.
- Overrides:
- getContent in class net.jxta.share.ContentManager
getMimeType
public java.lang.String getMimeType(java.io.File file)
- Returns the mime type of the specified file, or null if unknown.
- Overrides:
- getMimeType in class net.jxta.share.ContentManager