Package org.openjena.atlas

Examples of org.openjena.atlas.AtlasException


    {
        try
        {
            InputStream details = new FileInputStream(file) ;
            java.util.logging.LogManager.getLogManager().readConfiguration(details) ;
        } catch (Exception ex) { throw new AtlasException(ex) ; }
    }
View Full Code Here


        try
        {
            InputStream details = new ByteArrayInputStream(defaultProperties.getBytes("UTF-8")) ;
            java.util.logging.LogManager.getLogManager().readConfiguration(details) ;
           
        } catch (Exception ex) { throw new AtlasException(ex) ; }
    }
View Full Code Here

    static public InputStream openFile(String filename)
    {
        try {
           return openFileEx(filename) ;
        }
        catch (Exception ex) { throw new AtlasException(ex) ; }
    }
View Full Code Here

        try { resource.close(); } catch (IOException ex) { exception(ex) ; }
    }
   
    public static void exception(IOException ex)
    {
        throw new AtlasException(ex) ;
    }
View Full Code Here

        throw new AtlasException(ex) ;
    }

    public static void exception(String msg, IOException ex)
    {
        throw new AtlasException(msg, ex) ;
    }
View Full Code Here

                        colNum = INIT_COL ;
                    }
                    else
                        colNum++;
                    if ( ! Character.isDefined(ch) )
                        throw new AtlasException(String.format("No such codepoint: 0x%04X", ch)) ;
                }
                System.out.printf("%s: chars = %d , lines = %d\n", fn, charCount, lineNum) ;
            } catch (AtlasException ex)
            {
                System.out.printf(label+"[line=%d, col=%d] %s\n", lineNum, colNum, ex.getMessage()) ;
View Full Code Here

        this.finished = false;
    }
   
    private void checkFinished()
    {
        if (finished) throw new AtlasException("IteratorResourceClosing is closed, no further operations can be performed on it.") ;
    }
View Full Code Here

    private BPlusTree createBPlusTreeIndex(String indexName, DataBag<Tuple<Long>> tuples) {
        deleteExistingBPlusTreeIndex(indexName) ;
       
      final int size = indexName.length() ;

      if ( ( size != 3 ) && ( size != 4 ) ) throw new AtlasException("Unsupported size.") ;
     
      final RecordFactory recordFactory ;
      if ( size == 3 ) {
        recordFactory = new RecordFactory(SystemTDB.LenIndexTripleRecord, 0) ;
      } else {
View Full Code Here

    }

    private void createBPlusTreeIndex(final String indexName, final ColumnMap colMap, BPlusTree bpt) {
      final int size = indexName.length() ;

      if ( ( size != 3 ) && ( size != 4 ) ) throw new AtlasException("Unsupported size.") ;
     
      DataBag<Tuple<Long>> outTuples ;
      if ( size == 3 ) {
        outTuples = new MultiThreadedSortedDataBag<Tuple<Long>>(getThresholdPolicy(tripleSerializationFactory), tripleSerializationFactory, comparator);
      } else {
View Full Code Here

              long id = pair.getRight() ;
              out.writeInt(hash.length) ;
        out.write(hash) ;
            out.writeLong(id) ;
      } catch (IOException e) {
        new AtlasException(e) ;
      }
        }
View Full Code Here

TOP

Related Classes of org.openjena.atlas.AtlasException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.