- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 44 for StringWriter (0.1 sec)
-
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractGradleViolationRule.groovy
} private static String prettyPrintJson(def acceptanceJson) { def stringWriter = new StringWriter() new JsonWriter(stringWriter).withCloseable { writer -> writer.setIndent(" ") new Gson().toJson(acceptanceJson, AcceptedApiChange, writer) } return stringWriter.toString() } String getCurrentVersion() {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Aug 19 15:30:48 UTC 2024 - 10.4K bytes - Viewed (0) -
okcurl/src/main/kotlin/okhttp3/curl/logging/OneLineLogFormat.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.curl.logging import java.io.PrintWriter import java.io.StringWriter import java.time.Instant import java.time.ZoneOffset import java.time.format.DateTimeFormatterBuilder import java.time.temporal.ChronoField.HOUR_OF_DAY import java.time.temporal.ChronoField.MINUTE_OF_HOUR
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Apr 05 03:30:42 UTC 2024 - 2.1K bytes - Viewed (1) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest.kt
import org.gradle.util.internal.TextUtil import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.io.TempDir import java.io.File import java.io.StringWriter abstract class AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest { @TempDir lateinit var projectDir: File lateinit var firstAcceptedApiChangesFile: File
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 6K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/AbstractStringBasedModelInterpolator.java
} public Model interpolate(Model model, File projectDir, ProjectBuilderConfiguration config, boolean debugEnabled) throws ModelInterpolationException { StringWriter sWriter = new StringWriter(1024); MavenStaxWriter writer = new MavenStaxWriter(); try { writer.write(sWriter, model.getDelegate()); } catch (IOException | XMLStreamException e) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 13.5K bytes - Viewed (0) -
api/maven-api-di/src/main/java/org/apache/maven/di/tool/DiIndexProcessor.java
private void logMessage(Diagnostic.Kind kind, String message) { processingEnv.getMessager().printMessage(kind, message); } private void logError(String message, Exception e) { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); e.printStackTrace(pw); String stackTrace = sw.toString(); String fullMessage = message + "\n" + "Exception: "
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Mon Sep 16 06:25:19 UTC 2024 - 6.1K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java
import com.google.caliper.Benchmark; import com.google.caliper.Param; import com.google.caliper.api.VmOptions; import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; import java.nio.Buffer; import java.nio.CharBuffer; import java.util.Random; /** * Benchmarks for {@link CharStreams#copy}. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 23 18:59:54 UTC 2023 - 3.2K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java
import com.google.caliper.Benchmark; import com.google.caliper.Param; import com.google.caliper.api.VmOptions; import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; import java.nio.Buffer; import java.nio.CharBuffer; import java.util.Random; /** * Benchmarks for {@link CharStreams#copy}. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 23 18:59:54 UTC 2023 - 3.2K bytes - Viewed (0) -
guava/src/com/google/common/base/Throwables.java
* {@link Throwable#getStackTrace()}. */ @GwtIncompatible // java.io.PrintWriter, java.io.StringWriter public static String getStackTraceAsString(Throwable throwable) { StringWriter stringWriter = new StringWriter(); throwable.printStackTrace(new PrintWriter(stringWriter)); return stringWriter.toString(); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jul 19 16:02:36 UTC 2024 - 20.7K bytes - Viewed (0) -
android/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: Thu Oct 31 14:20:11 UTC 2024 - 11.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/BaseEncodingTest.java
} @GwtIncompatible // Writer private static void testStreamingEncodes(BaseEncoding encoding, String decoded, String encoded) throws IOException { StringWriter writer = new StringWriter(); try (OutputStream encodingStream = encoding.encodingStream(writer)) { encodingStream.write(decoded.getBytes(UTF_8)); } assertThat(writer.toString()).isEqualTo(encoded); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 16:27:30 UTC 2024 - 24.6K bytes - Viewed (0)