1.1 --- a/launcher/src/main/java/org/apidesign/bck2brwsr/dew/JFO.java Wed Jan 16 10:52:06 2013 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,96 +0,0 @@
1.4 -/*
1.5 - * To change this template, choose Tools | Templates
1.6 - * and open the template in the editor.
1.7 - */
1.8 -package org.apidesign.bck2brwsr.dew;
1.9 -
1.10 -import java.io.IOException;
1.11 -import java.io.InputStream;
1.12 -import java.io.OutputStream;
1.13 -import java.io.Reader;
1.14 -import java.io.StringReader;
1.15 -import java.io.Writer;
1.16 -import java.net.URI;
1.17 -import javax.lang.model.element.Modifier;
1.18 -import javax.lang.model.element.NestingKind;
1.19 -import javax.tools.JavaFileObject;
1.20 -
1.21 -/**
1.22 - *
1.23 - * @author Jaroslav Tulach <jtulach@netbeans.org>
1.24 - */
1.25 -final class JFO implements JavaFileObject {
1.26 - private final String text;
1.27 - private final String name;
1.28 -
1.29 - public JFO(String text, String name) {
1.30 - this.text = text;
1.31 - this.name = name;
1.32 - }
1.33 -
1.34 - @Override
1.35 - public Kind getKind() {
1.36 - return Kind.SOURCE;
1.37 - }
1.38 -
1.39 - @Override
1.40 - public boolean isNameCompatible(String simpleName, Kind kind) {
1.41 - return false;
1.42 - }
1.43 -
1.44 - @Override
1.45 - public NestingKind getNestingKind() {
1.46 - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
1.47 - }
1.48 -
1.49 - @Override
1.50 - public Modifier getAccessLevel() {
1.51 - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
1.52 - }
1.53 -
1.54 - @Override
1.55 - public URI toUri() {
1.56 - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
1.57 - }
1.58 -
1.59 - @Override
1.60 - public String getName() {
1.61 - return name;
1.62 - }
1.63 -
1.64 - @Override
1.65 - public InputStream openInputStream() throws IOException {
1.66 - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
1.67 - }
1.68 -
1.69 - @Override
1.70 - public OutputStream openOutputStream() throws IOException {
1.71 - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
1.72 - }
1.73 -
1.74 - @Override
1.75 - public Reader openReader(boolean ignoreEncodingErrors) throws IOException {
1.76 - return new StringReader(text);
1.77 - }
1.78 -
1.79 - @Override
1.80 - public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {
1.81 - return text;
1.82 - }
1.83 -
1.84 - @Override
1.85 - public Writer openWriter() throws IOException {
1.86 - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
1.87 - }
1.88 -
1.89 - @Override
1.90 - public long getLastModified() {
1.91 - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
1.92 - }
1.93 -
1.94 - @Override
1.95 - public boolean delete() {
1.96 - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
1.97 - }
1.98 -
1.99 -}