|
| 1 | +/** |
| 2 | + * Unit-API - Units of Measurement API for Java |
| 3 | + * Copyright (c) 2005-2015, Jean-Marie Dautelle, Werner Keil, V2COM. |
| 4 | + * |
| 5 | + * All rights reserved. |
| 6 | + * |
| 7 | + * Redistribution and use in source and binary forms, with or without modification, |
| 8 | + * are permitted provided that the following conditions are met: |
| 9 | + * |
| 10 | + * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. |
| 11 | + * |
| 12 | + * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. |
| 13 | + * |
| 14 | + * 3. Neither the name of JSR-363 nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. |
| 15 | + * |
| 16 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 17 | + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 18 | + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 19 | + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| 20 | + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 21 | + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 22 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
| 23 | + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 24 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| 25 | + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 | + */ |
| 27 | +package tec.uom.tools.obix; |
| 28 | + |
| 29 | +import java.io.InputStream; |
| 30 | +import java.io.OutputStream; |
| 31 | +import java.util.Arrays; |
| 32 | +import java.util.Collections; |
| 33 | +import java.util.HashSet; |
| 34 | +import java.util.Set; |
| 35 | + |
| 36 | +import javax.lang.model.SourceVersion; |
| 37 | +import javax.tools.Tool; |
| 38 | + |
| 39 | +/** |
| 40 | + * @author Werner |
| 41 | + * |
| 42 | + */ |
| 43 | +public class ObixImporter implements Tool { |
| 44 | + |
| 45 | + /* (non-Javadoc) |
| 46 | + * @see javax.tools.Tool#run(java.io.InputStream, java.io.OutputStream, java.io.OutputStream, java.lang.String[]) |
| 47 | + */ |
| 48 | + @Override |
| 49 | + public int run(InputStream in, OutputStream out, OutputStream err, |
| 50 | + String... arguments) { |
| 51 | + // TODO Auto-generated method stub |
| 52 | + return 0; |
| 53 | + } |
| 54 | + |
| 55 | + /* (non-Javadoc) |
| 56 | + * @see javax.tools.Tool#getSourceVersions() |
| 57 | + */ |
| 58 | + @Override |
| 59 | + public Set<SourceVersion> getSourceVersions() { |
| 60 | + return Collections.unmodifiableSet(new HashSet<SourceVersion>(Arrays.asList( |
| 61 | + new SourceVersion[]{SourceVersion.RELEASE_5, SourceVersion.RELEASE_6, |
| 62 | + SourceVersion.RELEASE_7 } |
| 63 | + ))); |
| 64 | + } |
| 65 | + |
| 66 | + /** |
| 67 | + * @param args |
| 68 | + */ |
| 69 | + public static void main(String[] args) { |
| 70 | + // TODO Auto-generated method stub |
| 71 | + |
| 72 | + } |
| 73 | + |
| 74 | +} |
0 commit comments