< prev index next >
src/share/classes/sun/misc/JavaOISAccess.java
Print this page
rev 12533 : 8174109: Better queuing priorities
Reviewed-by: smarks
*** 1,7 ****
/*
! * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 23,33 ****
--- 23,46 ----
* questions.
*/
package sun.misc;
+ import java.io.InvalidClassException;
import java.io.ObjectInputStream;
+ /**
+ * The interface to specify methods for accessing {@code ObjectInputStream}
+ * @author sjiang
+ */
public interface JavaOISAccess {
void setObjectInputFilter(ObjectInputStream stream, ObjectInputFilter filter);
ObjectInputFilter getObjectInputFilter(ObjectInputStream stream);
+ void checkArray(ObjectInputStream stream, Class<?> arrayType, int arrayLength)
+ throws InvalidClassException;
+ /**
+ * Sets a descriptor validating.
+ * @param ois stream to have the descriptors validated
+ * @param validator validator used to validate a descriptor.
+ */
+ void setValidator(ObjectInputStream ois, ObjectStreamClassValidator validator);
}
< prev index next >