/** * Clones the current attributes so they can be used outside of * startElement(). */ /*package*/ Attributes cloneAttributes() { if (!inStartElement) { throw new IllegalStateException(OUTSIDE_START_ELEMENT); } if (attributeCount == 0) { return ClonedAttributes.EMPTY; } long clonePointer = cloneAttributes(this.attributePointer, this.attributeCount); return new ClonedAttributes(pointer, clonePointer, attributeCount); }
/** * Clones the current attributes so they can be used outside of * startElement(). */ /*package*/ Attributes cloneAttributes() { if (!inStartElement) { throw new IllegalStateException(OUTSIDE_START_ELEMENT); } if (attributeCount == 0) { return ClonedAttributes.EMPTY; } long clonePointer = cloneAttributes(this.attributePointer, this.attributeCount); return new ClonedAttributes(pointer, clonePointer, attributeCount); }
/** * Clones the current attributes so they can be used outside of * startElement(). */ /*package*/ Attributes cloneAttributes() { if (!inStartElement) { throw new IllegalStateException(OUTSIDE_START_ELEMENT); } if (attributeCount == 0) { return ClonedAttributes.EMPTY; } long clonePointer = cloneAttributes(this.attributePointer, this.attributeCount); return new ClonedAttributes(pointer, clonePointer, attributeCount); }
/** * Clones the current attributes so they can be used outside of * startElement(). */ /*package*/ Attributes cloneAttributes() { if (!inStartElement) { throw new IllegalStateException(OUTSIDE_START_ELEMENT); } if (attributeCount == 0) { return ClonedAttributes.EMPTY; } long clonePointer = cloneAttributes(this.attributePointer, this.attributeCount); return new ClonedAttributes(pointer, clonePointer, attributeCount); }
/** * Clones the current attributes so they can be used outside of * startElement(). */ /*package*/ Attributes cloneAttributes() { if (!inStartElement) { throw new IllegalStateException(OUTSIDE_START_ELEMENT); } if (attributeCount == 0) { return ClonedAttributes.EMPTY; } long clonePointer = cloneAttributes(this.attributePointer, this.attributeCount); return new ClonedAttributes(pointer, clonePointer, attributeCount); }
/** * Clones the current attributes so they can be used outside of * startElement(). */ /*package*/ Attributes cloneAttributes() { if (!inStartElement) { throw new IllegalStateException(OUTSIDE_START_ELEMENT); } if (attributeCount == 0) { return ClonedAttributes.EMPTY; } long clonePointer = cloneAttributes(this.attributePointer, this.attributeCount); return new ClonedAttributes(pointer, clonePointer, attributeCount); }
/** * Clones the current attributes so they can be used outside of * startElement(). */ /*package*/ Attributes cloneAttributes() { if (!inStartElement) { throw new IllegalStateException(OUTSIDE_START_ELEMENT); } if (attributeCount == 0) { return ClonedAttributes.EMPTY; } long clonePointer = cloneAttributes(this.attributePointer, this.attributeCount); return new ClonedAttributes(pointer, clonePointer, attributeCount); }