@Test public void write() throws Exception { final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); IniDataWriter.write(DATA_STORE.getData(), outputStream); final String actual = new String(outputStream.toByteArray(), "UTF-8"); LOG.debug(actual); }
public static void write(@Nonnull final Data data, @Nonnull final OutputStream outputStream) throws IOException { Check.notNull(data, "data"); Check.notNull(outputStream, "outputStream"); final StringBuilder doc = new StringBuilder(10000); createDescription(data, doc); createRobots(data, doc); createOperatingSystems(data, doc); createBrowsers(data, doc); createBrowserTypes(data, doc); createBrowserPatterns(data, doc); createBrowserOperatingSystemMappings(data, doc); createOperatingSystemPatterns(data, doc); createDevices(data, doc); createDevicePatterns(data, doc); outputStream.write(doc.toString().getBytes("UTF-8")); }
IniDataWriter { public static void write(@Nonnull final Data data, @Nonnull final OutputStream outputStream) throws IOException { Check.notNull(data, "data"); Check.notNull(outputStream, "outputStream"); final StringBuilder doc = new StringBuilder(10000); createDescription(data, doc); createRobots(data, doc); createOperatingSystems(data, doc); createBrowsers(data, doc); createBrowserTypes(data, doc); createBrowserPatterns(data, doc); createBrowserOperatingSystemMappings(data, doc); createOperatingSystemPatterns(data, doc); createDevices(data, doc); createDevicePatterns(data, doc); outputStream.write(doc.toString().getBytes("UTF-8")); } }
IniDataWriter { public static void write(@Nonnull final Data data, @Nonnull final OutputStream outputStream) throws IOException { Check.notNull(data, "data"); Check.notNull(outputStream, "outputStream"); final StringBuilder doc = new StringBuilder(10000); createDescription(data, doc); createRobots(data, doc); createOperatingSystems(data, doc); createBrowsers(data, doc); createBrowserTypes(data, doc); createBrowserPatterns(data, doc); createBrowserOperatingSystemMappings(data, doc); createOperatingSystemPatterns(data, doc); createDevices(data, doc); createDevicePatterns(data, doc); outputStream.write(doc.toString().getBytes("UTF-8")); } private  IniDataWriter(); }
IniDataWriter { public static void write(@Nonnull final Data data, @Nonnull final OutputStream outputStream) throws IOException { Check.notNull(data, "data"); Check.notNull(outputStream, "outputStream"); final StringBuilder doc = new StringBuilder(10000); createDescription(data, doc); createRobots(data, doc); createOperatingSystems(data, doc); createBrowsers(data, doc); createBrowserTypes(data, doc); createBrowserPatterns(data, doc); createBrowserOperatingSystemMappings(data, doc); createOperatingSystemPatterns(data, doc); createDevices(data, doc); createDevicePatterns(data, doc); outputStream.write(doc.toString().getBytes("UTF-8")); } private  IniDataWriter(); static void write(@Nonnull final Data data, @Nonnull final OutputStream outputStream); }
IniDataWriter { public static void write(@Nonnull final Data data, @Nonnull final OutputStream outputStream) throws IOException { Check.notNull(data, "data"); Check.notNull(outputStream, "outputStream"); final StringBuilder doc = new StringBuilder(10000); createDescription(data, doc); createRobots(data, doc); createOperatingSystems(data, doc); createBrowsers(data, doc); createBrowserTypes(data, doc); createBrowserPatterns(data, doc); createBrowserOperatingSystemMappings(data, doc); createOperatingSystemPatterns(data, doc); createDevices(data, doc); createDevicePatterns(data, doc); outputStream.write(doc.toString().getBytes("UTF-8")); } private  IniDataWriter(); static void write(@Nonnull final Data data, @Nonnull final OutputStream outputStream);  }