- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for StringWriter (0.07 sec)
-
compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesTest.java
Object o2 = properties.get("test"); assertEquals("test", o2); } @Test public void testLoadSave() throws IOException { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); pw.println("# "); pw.println("# The Main "); pw.println("# "); pw.println("# Comment "); pw.println("# ");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 16.4K bytes - Viewed (0) -
compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/logging/SystemStreamLog.java
StringWriter sWriter = new StringWriter(); PrintWriter pWriter = new PrintWriter(sWriter); error.printStackTrace(pWriter); System.out.println("[" + prefix + "] " + sWriter.toString()); } private void print(String prefix, CharSequence content, Throwable error) { StringWriter sWriter = new StringWriter();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSourceTester.java
protected void setUp() throws Exception { this.source = factory.createSource(data); } public void testOpenStream() throws IOException { Reader reader = source.openStream(); StringWriter writer = new StringWriter(); char[] buf = new char[64]; int read; while ((read = reader.read(buf)) != -1) { writer.write(buf, 0, read); } reader.close(); writer.close();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 7.3K bytes - Viewed (0) -
compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuildingException.java
*/ public List<Problem> getProblems() { return problems; } private static String toMessage(List<Problem> problems) { StringWriter buffer = new StringWriter(1024); PrintWriter writer = new PrintWriter(buffer); writer.print(problems.size()); writer.print((problems.size() == 1) ? " problem was " : " problems were ");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.7K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/v4/ModelXmlTest.java
String config = node.toString(); assertFalse(config.isEmpty()); } String toXml(Model model) throws IOException, XMLStreamException { StringWriter sw = new StringWriter(); MavenStaxWriter writer = new MavenStaxWriter(); writer.setAddLocationInformation(false); writer.write(sw, model); return sw.toString(); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/FailureUrlService.java
}); return failureUrl; } private String getStackTrace(final Throwable t) { final SystemHelper systemHelper = ComponentUtil.getSystemHelper(); try (final StringWriter sw = new StringWriter(); final PrintWriter pw = new PrintWriter(sw)) { t.printStackTrace(pw); pw.flush(); return systemHelper.abbreviateLongText(sw.toString());
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Mon Jun 24 01:20:42 UTC 2024 - 6.3K bytes - Viewed (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/SettingsBuildingException.java
*/ public List<SettingsProblem> getProblems() { return problems; } private static String toMessage(List<SettingsProblem> problems) { StringWriter buffer = new StringWriter(1024); PrintWriter writer = new PrintWriter(buffer); writer.print(problems.size()); writer.print((problems.size() == 1) ? " problem was " : " problems were ");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.9K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingException.java
} return null; } // Package protected for test static String toMessage(String modelId, List<ModelProblem> problems) { StringWriter buffer = new StringWriter(1024); PrintWriter writer = new PrintWriter(buffer); writer.print(problems.size()); writer.print((problems.size() == 1) ? " problem was " : " problems were ");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharStreamsTest.java
} public void testCopy_toWriter_fromReader() throws IOException { StringWriter writer = new StringWriter(); long copied = CharStreams.copy(new StringReader(ASCII), writer); assertEquals(ASCII, writer.toString()); assertEquals(ASCII.length(), copied); StringWriter writer2 = new StringWriter(); copied = CharStreams.copy(new StringReader(I18N), writer2);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 11.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharStreamsTest.java
} public void testCopy_toWriter_fromReader() throws IOException { StringWriter writer = new StringWriter(); long copied = CharStreams.copy(new StringReader(ASCII), writer); assertEquals(ASCII, writer.toString()); assertEquals(ASCII.length(), copied); StringWriter writer2 = new StringWriter(); copied = CharStreams.copy(new StringReader(I18N), writer2);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 11.2K bytes - Viewed (0)