001package io.prometheus.metrics.expositionformats; 002 003import io.prometheus.metrics.model.snapshots.MetricSnapshots; 004import java.io.IOException; 005import java.io.OutputStream; 006 007public interface ExpositionFormatWriter { 008 boolean accepts(String acceptHeader); 009 010 /** Text formats use UTF-8 encoding. */ 011 void write(OutputStream out, MetricSnapshots metricSnapshots) throws IOException; 012 013 String getContentType(); 014}