package com.github.googlei18n.tachyfont;

import java.io.IOException;
import java.io.InputStream;
import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;

import javax.servlet.http.*;

@SuppressWarnings("serial")
public class TachyFontServlet extends HttpServlet {
  @Override
  public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
    resp.setContentType("text/plain");
    String jarFilename = "fonts/noto/sans/NotoSansJP-Thin_subset_smp.TachyFont.jar";
    JarFile jarFile = new JarFile("WEB-INF/" + jarFilename);
    resp.getWriter().println("Jar file: " + jarFilename);
    Enumeration<JarEntry> enumEntries = jarFile.entries();
    resp.getWriter().println("jar file entries:");
    while (enumEntries.hasMoreElements()) {
      JarEntry jarEntry = enumEntries.nextElement();
      resp.getWriter().println("  " + jarEntry.getName());
    }   

    JarEntry base = jarFile.getJarEntry("base");
    InputStream baseStream = jarFile.getInputStream(base);
    JarEntry closure_data = jarFile.getJarEntry("closure_data");
    JarEntry closure_idx = jarFile.getJarEntry("closure_idx");
    JarEntry codepoints = jarFile.getJarEntry("codepoints");
    JarEntry gids = jarFile.getJarEntry("gids");
    JarEntry glyph_data = jarFile.getJarEntry("glyph_data");
    JarEntry glyph_table = jarFile.getJarEntry("glyph_table");
    jarFile.close();
  }
}

@@ -59,24 +59,26 @@
 OException;%0A
+//
 import java.
@@ -916,13 +916,12 @@
    %7D
-   
 %0A%0A
+//
     
@@ -961,24 +961,26 @@
 ry(%22base%22);%0A
+//
     InputStr
@@ -1022,24 +1022,26 @@
 ream(base);%0A
+//
     JarEntry
@@ -1085,32 +1085,34 @@
 closure_data%22);%0A
+//
     JarEntry clo
@@ -1154,24 +1154,26 @@
 sure_idx%22);%0A
+//
     JarEntry
@@ -1217,24 +1217,26 @@
 depoints%22);%0A
+//
     JarEntry
@@ -1268,24 +1268,26 @@
 ry(%22gids%22);%0A
+//
     JarEntry
@@ -1331,24 +1331,26 @@
 yph_data%22);%0A
+//
     JarEntry
@@ -1396,24 +1396,25 @@
 ph_table%22);%0A
+%0A
     jarFile.

Comment out unused variables. This whole file is likely to go away.