You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cache/.github/workflows
Nodoubtz 63223f8e47 Create npm-grunt.yml
Signed-off-by: Nodoubtz <53144580+nodoubtz@users.noreply.github.com>
2 weeks ago
..
5codeql.yml Create 5codeql.yml 3 months ago
check-dist.yml Update check-dist node version 2 years ago
close-inactive-issues.yml Bump actions/stale from 3 to 9 9 months ago
codeql.yml Bump github/codeql-action from 2 to 3 9 months ago
dependency-review.yml Create dependency-review.yml 3 months ago
google.yml Create google.yml 3 months ago
ibm.yml Create ibm.yml 3 months ago
import java.io.*; public class InputStreamToString { public static String convertUsingStringBuilder(InputStream inputStream) throws IOException { StringBuilder result = new StringBuilder(); try (InputStreamReader reader = new InputStreamReader(inputStream)) { char[] buffer = new char[1024]; int length; while ((length = reader.read(buffer)) != -1) { result.append(buffer, 0, length); } } return result.toString(); } } fix: resolve InputStream to String conversion inefficiencies 3 months ago
import java.io.*; import java.nio.file.Files; public class InputStreamToString { public static String convertUsingFiles(InputStream inputStream) throws IOException { return new String(inputStream.readAllBytes(), "UTF-8"); } } fix: resolve InputStream to String conversion inefficiencies 3 months ago
import java.io.*; import java.util.Scanner; public class InputStreamToString { public static String convertUsingScanner(InputStream inputStream) { try (Scanner scanner = new Scanner(inputStream).useDelimiter("\\A")) { return scanner.hasNext() ? scanner.next() : ""; } } } fix: resolve InputStream to String conversion inefficiencies 3 months ago
import java.io.*; import java.util.stream.Collectors; public class InputStreamToString { public static String convertUsingBufferedReader(InputStream inputStream) throws IOException { try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream))) { return reader.lines().collect(Collectors.joining(System.lineSeparator())); } } } fix: resolve InputStream to String conversion inefficiencies 3 months ago
import java.io.*; import org.apache.commons.io.IOUtils; public class InputStreamToString { public static String convertUsingIOUtils(InputStream inputStream) throws IOException { return IOUtils.toString(inputStream, "UTF-8"); } } fix: resolve InputStream to String conversion inefficiencies 3 months ago
issue-opened-workflow.yml Remove actions to add new PRs and issues to a project board 2 years ago
licensed.yml Update workflows to use reusable-workflows (#1066) 3 years ago
manual.yml Create manual.yml 3 months ago
npm-grunt.yml Create npm-grunt.yml 2 weeks ago
npm-publish-github-packages.yml Create npm-publish-github-packages.yml 3 months ago
npm-publish.yml Create npm-publish.yml 3 months ago
pr-opened-workflow.yml Remove actions to add new PRs and issues to a project board 2 years ago
publish-immutable-actions.yml Update publish-immutable-actions.yml 5 months ago
release-new-action-version.yml Update release-new-action-version.yml 3 months ago
static.yml Create static.yml 3 months ago
webpack.yml Create webpack.yml 4 months ago
workflow.yml Bump actions/setup-node from 3 to 4 9 months ago