|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--quicktime.QTObject
|
+--quicktime.util.QTHandleRef
|
+--quicktime.util.StringHandle
This class is used to store 7bit ASCII value strings
| Field Summary | |
static int |
kCStringFormat
|
static int |
kPStringFormat
|
| Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
| Constructor Summary | |
StringHandle(java.lang.String str,
int format)
Construct a handle from a java String. |
|
| Method Summary | |
static StringHandle |
fromCodecName(CodecName cn)
Get the name of the compressor component. |
void |
fromJavaString(java.lang.String str)
Sets the String found in the handle to the java.lang.String characters. |
int |
getFormat()
Returns true if the string stored in the handle is a C String, or false if it is a PString |
int |
getStringLength()
Returns the length of the String that is stored in the StringHandle. |
java.lang.String |
toJavaString()
Returns the String found in the Handle as a java.lang.String |
java.lang.String |
toString()
Returns the String found in the Handle as a java.lang.String |
| Methods inherited from class quicktime.util.QTHandleRef |
copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, fromCompressionDialogState, fromSCSequence, getBytes, getSize, inMemory, isLocked, lock, lockHigh, moveHigh, toQTPointer, toQTPointer, unlock |
| Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int kCStringFormat
public static final int kPStringFormat
| Constructor Detail |
public StringHandle(java.lang.String str,
int format)
throws QTException
str - the Java string to store in the handleformat - if kCStringFormat the string is formatted as a C string with a '\0' termination
if kPStringFormat then the string is formatted as a PString with a count byte inserted at the start.| Method Detail |
public static StringHandle fromCodecName(CodecName cn)
CodecName.getName()public int getStringLength()
public int getFormat()
public java.lang.String toJavaString()
throws UtilException
UtilException
public void fromJavaString(java.lang.String str)
throws UtilException
str - the characters that the StringHandle will be set to
UtilExceptionpublic java.lang.String toString()
toString in class QTHandleRef
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||