public class AvatarStreamManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
AvatarStreamManager.ASMClient
Callback interface for an Avatar Stream Manager's client.
|
Constructor and Description |
---|
AvatarStreamManager(JAOptions jaopts,
AvatarStreamManager.ASMClient client,
java.lang.String av,
java.lang.String avnonstdurl)
Constructs a new AvatarStreamManager for the avatar determined by
the given avatar name and non-standard (overriding) URL,
using the given JA Options settings and using the given client for
notification if necessary.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getAvatarStream()
Provided
isFinished() holds, this method returns an input
stream for the avatar definition handled by this manager, or throws
an IOException if it was not possible to obtain a stream
for the avatar definition. |
java.lang.String |
getAvatarURL()
Returns the URL for the avatar definition file handled by this
manager, provided that URL is valid; returns
null otherwise. |
boolean |
isFinished()
Indicates whether or not the attempt to establish an input stream
for the avatar is completed.
|
public AvatarStreamManager(JAOptions jaopts, AvatarStreamManager.ASMClient client, java.lang.String av, java.lang.String avnonstdurl)
public boolean isFinished()
public java.lang.String getAvatarURL()
null
otherwise.public java.io.InputStream getAvatarStream() throws java.io.IOException
isFinished()
holds, this method returns an input
stream for the avatar definition handled by this manager, or throws
an IOException
if it was not possible to obtain a stream
for the avatar definition.java.io.IOException