/** * Returns a {@link String} created from the NUL-terminated C string pointed * to by this {@link BytePtr} using the default {@link Charset}. Illegal * characters will be replaced with '?' in the result. This assumes that * the default {@link Charset} is an 8-bit encoding or a variable length * encoding with 8-bits as smallest bit length such as UTF-8. * * @return a {@link String} converted from the C string bytes. */ public String toStringZ() { return toStringZ(Charset.defaultCharset()); }
/** * @since Available in iOS 2.0 and later. */ public static String getStatusDescription(SCStatusCode status) { BytePtr ptr = getStatusDescription0(status); return ptr.toStringZ(); } /*<methods>*/
public String nameValue() { VoidPtr ptr = new VoidPtr(); if (getValue(CGPDFObjectType.Name, ptr)) { return ptr.as(BytePtr.class).toStringZ(); } return null; } public String stringValue() {
/** * @since Available in iOS 2.0 and later. */ public String getName(long index) { BytePtr.BytePtrPtr ptr = new BytePtr.BytePtrPtr(); if (getName(index, ptr)) { return ptr.get().toStringZ(); } return null; } public boolean hasString(long index) {
/** * @since Available in iOS 2.0 and later. */ public String getName(String key) { BytePtr.BytePtrPtr ptr = new BytePtr.BytePtrPtr(); if (getName(key, ptr)) { return ptr.get().toStringZ(); } return null; } public boolean hasString(String key) {
public String stringValue() { VoidPtr ptr = new VoidPtr(); if (getValue(CGPDFObjectType.String, ptr)) { return ptr.as(BytePtr.class).toStringZ(); } return null; } public CGPDFArray arrayValue() {
/** * @since Available in iOS 2.0 and later. */ public String popName() { BytePtr.BytePtrPtr ptr = new BytePtr.BytePtrPtr(); if (popName(ptr)) { return ptr.get().toStringZ(); } return null; } /**
/** * @throws OSStatusException * @since Available in iOS 5.0 and later. */ public String getPeerDomainName() throws OSStatusException { BytePtr peerNamePtr = new BytePtr(); MachineSizedUIntPtr peerNameLenPtr = new MachineSizedUIntPtr(); OSStatus status = getPeerDomainName0(peerNamePtr, peerNameLenPtr); OSStatusException.throwIfNecessary(status); return peerNamePtr.toStringZ(); } /**
/** * @throws OSStatusException * @since Available in iOS 5.0 and later. */ public String getPeerID() throws OSStatusException { BytePtr.BytePtrPtr peerIDPtr = new BytePtr.BytePtrPtr(); MachineSizedUIntPtr peerIDLenPtr = new MachineSizedUIntPtr(); OSStatus status = getPeerID0(peerIDPtr, peerIDLenPtr); OSStatusException.throwIfNecessary(status); return peerIDPtr.get().toStringZ(); } /**
/** * Returns a {@link String} created from the NUL-terminated C string pointed * to by this {@link BytePtr} using the default {@link Charset}. Illegal * characters will be replaced with '?' in the result. This assumes that * the default {@link Charset} is an 8-bit encoding or a variable length * encoding with 8-bits as smallest bit length such as UTF-8. * * @return a {@link String} converted from the C string bytes. */ public String toStringZ() { return toStringZ(Charset.defaultCharset()); }
/** * Returns a {@link String} created from the NUL-terminated C string pointed * to by this {@link BytePtr} using the default {@link Charset}. Illegal * characters will be replaced with '?' in the result. This assumes that * the default {@link Charset} is an 8-bit encoding or a variable length * encoding with 8-bits as smallest bit length such as UTF-8. * * @return a {@link String} converted from the C string bytes. */ public String toStringZ() { return toStringZ(Charset.defaultCharset()); }
/** * Returns a {@link String} created from the NUL-terminated C string pointed * to by this {@link BytePtr} using the default {@link Charset}. Illegal * characters will be replaced with '?' in the result. This assumes that * the default {@link Charset} is an 8-bit encoding or a variable length * encoding with 8-bits as smallest bit length such as UTF-8. * * @return a {@link String} converted from the C string bytes. */ public String toStringZ() { return toStringZ(Charset.defaultCharset()); }
/** * @since Available in iOS 2.0 and later. */ public static String getStatusDescription(SCStatusCode status) { BytePtr ptr = getStatusDescription0(status); return ptr.toStringZ(); } /*<methods>*/
public String nameValue() { VoidPtr ptr = new VoidPtr(); if (getValue(CGPDFObjectType.Name, ptr)) { return ptr.as(BytePtr.class).toStringZ(); } return null; } public String stringValue() {
public String nameValue() { VoidPtr ptr = new VoidPtr(); if (getValue(CGPDFObjectType.Name, ptr)) { return ptr.as(BytePtr.class).toStringZ(); } return null; } public String stringValue() {
/** * @since Available in iOS 2.0 and later. */ public String getName(String key) { BytePtr.BytePtrPtr ptr = new BytePtr.BytePtrPtr(); if (getName(key, ptr)) { return ptr.get().toStringZ(); } return null; } public boolean hasString(String key) {
/** * @since Available in iOS 2.0 and later. */ public String popName() { BytePtr.BytePtrPtr ptr = new BytePtr.BytePtrPtr(); if (popName(ptr)) { return ptr.get().toStringZ(); } return null; } /**
/** * @since Available in iOS 2.0 and later. */ public String getName(long index) { BytePtr.BytePtrPtr ptr = new BytePtr.BytePtrPtr(); if (getName(index, ptr)) { return ptr.get().toStringZ(); } return null; } public boolean hasString(long index) {
/** * @throws OSStatusException * @since Available in iOS 5.0 and later. */ public String getPeerDomainName() throws OSStatusException { BytePtr peerNamePtr = new BytePtr(); MachineSizedUIntPtr peerNameLenPtr = new MachineSizedUIntPtr(); OSStatus status = getPeerDomainName0(peerNamePtr, peerNameLenPtr); OSStatusException.throwIfNecessary(status); return peerNamePtr.toStringZ(); } /**
/** * @throws OSStatusException * @since Available in iOS 5.0 and later. */ public String getPeerID() throws OSStatusException { BytePtr.BytePtrPtr peerIDPtr = new BytePtr.BytePtrPtr(); MachineSizedUIntPtr peerIDLenPtr = new MachineSizedUIntPtr(); OSStatus status = getPeerID0(peerIDPtr, peerIDLenPtr); OSStatusException.throwIfNecessary(status); return peerIDPtr.get().toStringZ(); } /**