Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 44 for StringWriter (0.07 sec)

  1. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessApiFailureHook.java

                    sb.append(cause.getClass().getName());
                } else {
                    sb.append(cause.getMessage());
                }
                try (final StringWriter sw = new StringWriter(); final PrintWriter pw = new PrintWriter(sw)) {
                    cause.printStackTrace(pw);
                    pw.flush();
                    sb.append(" [ ").append(sw.toString()).append(" ]");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/io/CopyUtilTest.java

        InputStream is = new ByteArrayInputStream(srcBytes);
    
        ByteArrayOutputStream os = new ByteArrayOutputStream();
    
        Reader reader = new StringReader(srcString);
    
        StringWriter writer = new StringWriter();
    
        StringBuilder builder = new StringBuilder();
    
        URL url = ResourceUtil.getResource(getClass().getName().replace('.', '/') + ".txt");
    
        File inputFile = URLUtil.toFile(url);
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbException.java

            return status;
        }
        public Throwable getRootCause() {
            return rootCause;
        }
        public String toString() {
            if( rootCause != null ) {
                StringWriter sw = new StringWriter();
                PrintWriter pw = new PrintWriter( sw );
                rootCause.printStackTrace( pw );
                return super.toString() + "\n" + sw;
            } else {
                return super.toString();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 5.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlFactory.java

         * @see #fromXmlString(String)
         */
        @Nonnull
        default String toXmlString(@Nonnull T content) throws XmlWriterException {
            StringWriter sw = new StringWriter();
            write(content, sw);
            return sw.toString();
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Nov 17 15:52:15 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/CharSourceTest.java

      public void testOpenBufferedStream() throws IOException {
        BufferedReader reader = source.openBufferedStream();
        assertTrue(source.wasStreamOpened());
        assertFalse(source.wasStreamClosed());
    
        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 May 07 15:26:58 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/dcerpc/DcerpcException.java

            return error;
        }
        public Throwable getRootCause() {
            return rootCause;
        }
        public String toString() {
            if (rootCause != null) {
                StringWriter sw = new StringWriter();
                PrintWriter pw = new PrintWriter(sw);
                rootCause.printStackTrace(pw);
                return super.toString() + "\n" + sw;
            }
            return super.toString();
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.4K bytes
    - Viewed (0)
  10. android/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
    - 6.8K bytes
    - Viewed (0)
Back to top