/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
public class WindowPropertyGetter {
private final long window;
private final long offset;
private final long length;
private final boolean auto_delete;
private final long type;
private boolean executed = false;
{
}
// Zero is AnyPropertyType.
// if (type == 0) {
// throw new IllegalArgumentException("Type ATOM shouldn't be zero");
// }
if (window == 0) {
throw new IllegalArgumentException("Window must not be zero");
}
this.auto_delete = auto_delete;
sun.java2d.Disposer.addRecord(this, disposer = new UnsafeXDisposerRecord("WindowPropertyGetter", new long[] {actual_type,
}
{
}
public int execute() {
}
try {
if (isDisposed()) {
throw new IllegalStateException("Disposed");
}
if (executed) {
throw new IllegalStateException("Already executed");
}
executed = true;
if (isCachingSupported() && isCached()) {
return XConstants.Success;
}
// Fix for performance problem - IgnodeBadWindowHandler is
// used too much without reason, just ignore it
errorHandler = null;
}
if (errorHandler != null) {
}
bytes_after, data);
if (isCachingSupported() && status == XConstants.Success && getData() != 0 && isCacheableProperty(property)) {
// Property has some data, we cache them
}
if (errorHandler != null) {
}
return status;
} finally {
}
}
public boolean isExecuted() {
return executed;
}
public boolean isDisposed() {
}
public int getActualFormat() {
if (isDisposed()) {
throw new IllegalStateException("Disposed");
}
if (!executed) {
throw new IllegalStateException("Not executed");
}
}
public long getActualType() {
if (isDisposed()) {
throw new IllegalStateException("Disposed");
}
if (!executed) {
throw new IllegalStateException("Not executed");
}
}
public int getNumberOfItems() {
if (isDisposed()) {
throw new IllegalStateException("Disposed");
}
if (!executed) {
throw new IllegalStateException("Not executed");
}
}
public long getData() {
if (isDisposed()) {
throw new IllegalStateException("Disposed");
}
}
public long getBytesAfter() {
if (isDisposed()) {
throw new IllegalStateException("Disposed");
}
if (!executed) {
throw new IllegalStateException("Not executed");
}
}
public void dispose() {
try {
if (isDisposed()) {
return;
}
} finally {
}
}
static boolean isCachingSupported() {
return XPropertyCache.isCachingSupported();
}
}
boolean isCached() {
}
int getDataLength() {
}
void readFromCache() {
}
void cacheProperty() {
getData(),
getDataLength()),
property);
}
}