Package org.openjena.atlas

Examples of org.openjena.atlas.AtlasException


   
    public static Boolean getPropertyAsBoolean(Properties properties, String key)
    {
        String x = properties.getProperty(key) ;
        if ( x == null )
            throw new AtlasException("No such property key: "+key) ;
        if ( x.equalsIgnoreCase("true") ) return true ;
        if ( x.equalsIgnoreCase("false") ) return true ;
        throw new AtlasException("Value '"+x+"'not recognized for "+key) ;
    }
View Full Code Here


    {
        String msg = String.format("Inconsistent: key=%s value=%s expected=%s",
                                   key,
                                   (actual==null?"<null>":actual),
                                   (expected==null?"<null>":expected) ) ;
        throw new AtlasException(msg) ;
    }
View Full Code Here

            if ( x == 0 )
                break ;
        }

        if ( x != 0 )
            throw new AtlasException("formatUnsignedLongHex: overflow") ;

        while ( w > 0 )
        {
            b[idx] = '0' ;
            idx-- ;
View Full Code Here

        }
    }

    @Override
    public void remove() {
        throw new AtlasException("Method not implemented.") ;
    }
View Full Code Here

    @Override
    public void close() {
        try {
            in.close() ;
        } catch (IOException e) {
            new AtlasException(e) ;
        }       
    }
View Full Code Here

                if ( count == -1 ) break ;
                len += count ;
            }
            if ( len == 0 ) return -1 ;
            if ( len%rowLength != 0 )
                throw new AtlasException("Wrong length: "+len) ;
            return len ;
        } catch (IOException ex) { throw new AtlasException(ex) ; }
    }
View Full Code Here

            dftKeyLength = SystemTDB.LenIndexQuadRecord ;
            dftValueLength = 0 ;
        }
        else
        {
            throw new AtlasException("Index name: "+indexName) ;
        }
       
        ColumnMap colMap = new ColumnMap(primaryOrder, indexName) ;

View Full Code Here

    }

    public void flush()
    {
        try { output.write(b, 0, rows * rowLength) ; }
        catch (IOException e) { throw new AtlasException(e) ; }
        idx = 0 ;
        rows = 0 ;
    }
View Full Code Here

   
    public void close()
    {
        flush() ;
        try { output.flush() ; }
        catch (IOException e) { throw new AtlasException(e) ; }
    }
View Full Code Here

       
        try {
            outputTriples = new FileOutputStream(dataFileTriples) ;
            outputQuads = new FileOutputStream(dataFileQuads) ;
        }
        catch (FileNotFoundException e) { throw new AtlasException(e) ; }
       
        NodeTableBuilder sink = new NodeTableBuilder(dsg, monitor, outputTriples, outputQuads) ;
        Sink<Triple> sink2 = new SinkExtendTriplesToQuads(sink) ;
       
        monitor.start() ;
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.