Skip to content

Commit

Permalink
dbeaver/pro#3404 Java NIO path support
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-rider committed Oct 27, 2024
1 parent 841d6ed commit abec1f7
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
32 changes: 32 additions & 0 deletions modules/org.jkiss.utils/src/org/jkiss/api/NioPathProvider.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jkiss.api;

import org.jkiss.code.NotNull;

import java.io.IOException;
import java.nio.file.Path;

/**
* Provides implementation of file system Path by URI
*/
public interface NioPathProvider {

@NotNull

Check warning on line 29 in modules/org.jkiss.utils/src/org/jkiss/api/NioPathProvider.java

View workflow job for this annotation

GitHub Actions / Check / Lint

[checkstyle] reported by reviewdog 🐶 Missing a Javadoc comment. Raw Output: /github/workspace/./modules/org.jkiss.utils/src/org/jkiss/api/NioPathProvider.java:29:5: warning: Missing a Javadoc comment. (com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck)
Path getPathByStringOrUri(@NotNull ObjectWithContextParameters context, @NotNull String pathOrUri) throws IOException;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jkiss.api;

import java.util.Map;

/**
* Object with contextual information
*/
public interface ObjectWithContextParameters {

Map<String, Object> getObjectContextParameters();

Check warning on line 26 in modules/org.jkiss.utils/src/org/jkiss/api/ObjectWithContextParameters.java

View workflow job for this annotation

GitHub Actions / Check / Lint

[checkstyle] reported by reviewdog 🐶 Missing a Javadoc comment. Raw Output: /github/workspace/./modules/org.jkiss.utils/src/org/jkiss/api/ObjectWithContextParameters.java:26:5: warning: Missing a Javadoc comment. (com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck)

Object getObjectContextParameter(String name);

Check warning on line 28 in modules/org.jkiss.utils/src/org/jkiss/api/ObjectWithContextParameters.java

View workflow job for this annotation

GitHub Actions / Check / Lint

[checkstyle] reported by reviewdog 🐶 Missing a Javadoc comment. Raw Output: /github/workspace/./modules/org.jkiss.utils/src/org/jkiss/api/ObjectWithContextParameters.java:28:5: warning: Missing a Javadoc comment. (com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck)

void setObjectContextParameter(String name, Object value);

Check warning on line 30 in modules/org.jkiss.utils/src/org/jkiss/api/ObjectWithContextParameters.java

View workflow job for this annotation

GitHub Actions / Check / Lint

[checkstyle] reported by reviewdog 🐶 Missing a Javadoc comment. Raw Output: /github/workspace/./modules/org.jkiss.utils/src/org/jkiss/api/ObjectWithContextParameters.java:30:5: warning: Missing a Javadoc comment. (com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck)

}

0 comments on commit abec1f7

Please sign in to comment.