|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.skype.tutorial.apptoken.AppToken
public class AppToken
Encapsulates the AppToken required to access the SkypeKit runtime.
| Field Summary | |
|---|---|
static java.lang.String |
APP_TOKEN_FILE_NAME
Default name of the text file containing the AppToken data string. |
static java.lang.String |
APP_TOKEN_FILE_SUFFIX
Expected suffix for the file text file containing the AppToken data string (lowercase). |
private java.lang.StringBuffer |
appTokenData
Actual AppToken string. |
static java.lang.String |
MY_CLASS_TAG
Info/Debug console output message prefix/identifier tag. |
| Constructor Summary | |
|---|---|
AppToken()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAppToken()
Obtains the AppToken. |
java.lang.String |
readAppTokenFromFile(java.lang.String pathName)
Reads an AppToken data string from a file. |
void |
setAppToken(java.lang.String appTokenStr)
(Re-)Set the AppToken. |
boolean |
setAppTokenFromFile(java.lang.String pathName)
Sets the AppToken data string from a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MY_CLASS_TAG
public static final java.lang.String APP_TOKEN_FILE_SUFFIX
readAppTokenFromFile(String).
public static final java.lang.String APP_TOKEN_FILE_NAME
readAppTokenFromFile(String).
private java.lang.StringBuffer appTokenData
| Constructor Detail |
|---|
public AppToken()
| Method Detail |
|---|
public void setAppToken(java.lang.String appTokenStr)
appTokenStr - The actual token data string.appTokenDatapublic java.lang.String getAppToken()
appTokenDatapublic boolean setAppTokenFromFile(java.lang.String pathName)
pathName - The pathname of the file containing the actual token data string.
readAppTokenFromFile(java.lang.String)public java.lang.String readAppTokenFromFile(java.lang.String pathName)
txt or TXT, appends
the default file name APP_TOKEN_FILE_NAME. Writes a diagnostic message to the console
if the specified file cannot be opened or the AppToken data string read is not exactly
equal to the expected length (that is, the size of the specified file).
pathName - The path of the file containing the actual token data string.
APP_TOKEN_FILE_SUFFIX,
APP_TOKEN_FILE_NAME
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||