Example usage for javax.tools SimpleJavaFileObject subclass-usage

List of usage examples for javax.tools SimpleJavaFileObject subclass-usage

Introduction

In this page you can find the example usage for javax.tools SimpleJavaFileObject subclass-usage.

Usage

From source file net.nicholaswilliams.java.licensing.encryption.TestRSAKeyPairGenerator.java

class MockJavaClassObject extends SimpleJavaFileObject {
    protected final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

    public MockJavaClassObject(String name, Kind kind) {
        super(URI.create("string:///" + name.replace('.', '/') + kind.extension), kind);
    }