Home / Function/ readAll() — spring-boot Function Reference

readAll() — spring-boot Function Reference

Architecture documentation for the readAll() function in LogUpdateEvent.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  e0d8bdd3_bcb8_0ae9_0abc_5d0d23d31eab["readAll()"]
  e747cbab_4279_bc75_c0de_0be2893114bb["read()"]
  e0d8bdd3_bcb8_0ae9_0abc_5d0d23d31eab -->|calls| e747cbab_4279_bc75_c0de_0be2893114bb
  c6fb1aae_4d88_7cbe_ca22_ec85b8010be2["LogUpdateEvent()"]
  e0d8bdd3_bcb8_0ae9_0abc_5d0d23d31eab -->|calls| c6fb1aae_4d88_7cbe_ca22_ec85b8010be2
  style e0d8bdd3_bcb8_0ae9_0abc_5d0d23d31eab fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/LogUpdateEvent.java lines 77–92

	static void readAll(InputStream inputStream, Consumer<LogUpdateEvent> consumer) throws IOException {
		try {
			LogUpdateEvent event;
			while ((event = LogUpdateEvent.read(inputStream)) != null) {
				consumer.accept(event);
			}
		}
		catch (IllegalStateException ex) {
			byte[] message = (ex.getMessage() == null) ? new byte[0] : ex.getMessage().getBytes(StandardCharsets.UTF_8);
			consumer.accept(new LogUpdateEvent(StreamType.STD_ERR, message));
			StreamUtils.drain(inputStream);
		}
		finally {
			inputStream.close();
		}
	}

Subdomains

Frequently Asked Questions

What does readAll() do?
readAll() is a function in the spring-boot codebase.
What does readAll() call?
readAll() calls 2 function(s): LogUpdateEvent, read.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free