Code example for SerializablePermission

    private static Void checkPermission() {
        SecurityManager sm = System.getSecurityManager();
        if (sm != null) {
            if (!allowSubclass)
        return null; 
    private OutputStream(Void ignore) { }
     * Create a new instance of this class. 
     * throw SecurityException if SecurityManager is installed and 
     * enableSubclassImplementation SerializablePermission 
     * is not granted or jdk.corba.allowOutputStreamSubclass system 
     * property is either not set or is set to 'false' 
Stop searching for code, let great code find you!  Add Codota to your java IDE