text stringlengths 3 1.18M |
|---|
/*
* (c) Copyright 2010 Talis Information Ltd.
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.io;
import java.io.* ;
import org.openjena.atlas.lib.AtlasException ;
/** Fast and streaming.
* Does not guarantee the character is legal or defined;
* this is just th... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.io;
import static org.openjena.atlas.io.IO.EOF ;
public final class CharStreamSequence implements CharStream
{
private CharSequence string ;
// N... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
public class AccString<T> implements Accumulate<T, String>
{
StringBuilder buffer = null ;
private String sep ;
private boolean fir... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
public interface Filter <T> { boolean accept(T item) ; }
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All r... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.concurrent.BlockingQueue;
/** Iterator over a blocking queue until qu... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import java.util.Iterator;
import java.util.NoSuchElementException;
import com.hp.hpl.jena.util.iterator.NiceIterator;
/** Iterate while a c... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import java.util.Iterator;
import java.util.NoSuchElementException;
/** Iterator over a Java base array */
public final class IteratorArray<T> imple... |
/*
* (c) Copyright 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import java.util.HashSet;
import java.util.Set;
public class SetUtils
{
// Set specific operations
public static <T> Se... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import java.util.Iterator;
import java.util.NoSuchElementException;
/** Null Iterator - also guaranteed sharable and immutable */
public class... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
public class FilterOutNulls<T> implements Filter<T>
{
public FilterOutNulls() { }
public boolean accept(T item)
{
... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import java.io.PrintStream ;
import java.util.* ;
import org.openjena.atlas.lib.Action ;
import org.openjena.atlas.lib.ActionKeyValue ;
imp... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import org.openjena.atlas.io.IndentedWriter ;
import org.openjena.atlas.io.Printable ;
import org.openjena.atlas.lib.Action ;
public class Act... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import java.util.Iterator;
public class WrapperIterator<T> implements Iterator<T>
{
private final Iterator<T> iter ;
public WrapperIterator(Ite... |
/*
* (c) Copyright 2010 Talis Information Ltd.
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
/**
* Add a filter to a chain - the original filter is called after this new sub-filter.
*/
public abstract class FilterStack<T> implements Filter<T>
{
private fina... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
public interface Accumulate <T, R>
{
public void start() ;
public void accumulate(T item) ;
public void finish();
public R get... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
public interface Transform <T, R> { R convert(T item) ; }
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All ... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import java.util.Iterator ;
import java.util.NoSuchElementException;
/** PeekIterator - is one slot ahead from the wrapped iterator */
public class PeekI... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import java.util.Iterator;
import java.util.NoSuchElementException;
import org.openjena.atlas.lib.Closeable ;
import com.hp.hpl.jena.sparql.util... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import java.util.HashSet;
import java.util.Set;
public class FilterUnique<T> implements Filter<T>
{
private Set<T> seen = new HashSet<T>(... |
/*
* (c) Copyright 2009 Talis Information Ltd
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import java.util.Iterator ;
public class IteratorInteger implements Iterator<Long>
{
private final long start ;
private final long finish ;
private long curre... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import java.util.Iterator;
import java.util.NoSuchElementException;
/** Iterator2 : the concatenation of two iterators.
*
* @author Andy S... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
import org.openjena.atlas.lib.DS ;
/** Itera... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import java.util.Map;
import org.openjena.atlas.lib.ActionKeyValue ;
public class MapUtils
{
// Map specific operations
... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import java.util.Iterator;
import java.util.NoSuchElementException;
public class SingletonIterator<T> implements Iterator<T>, Iterable<T>
{
... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.iterator;
import org.openjena.atlas.lib.Action ;
public class ActionCount<T> implements Action<T>
{
private long count = 0 ;
//@Override
public ... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.event;
public class Event
{
private EventType type ;
private Object argument ;
public Event(EventType label, Object argument) { this.type = l... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.event;
/** Interface for receiving events */
public interface EventListener
{
void event(Object dest, Event event) ;
}
/*
* (c) Copyright 2008, 200... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.event;
import com.hp.hpl.jena.sparql.util.Symbol;
public class EventType extends Symbol
{
public EventType(Class<?> cls, String label) { this(... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.event;
import java.util.ArrayList ;
import java.util.HashMap ;
import java.util.List ;
import java.util.Map ;
/** The event system - the single, global event... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.test;
public interface ExecGenerator
{
public void executeOneTest() ;
}
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rig... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.test;
public class RepeatExecution
{
public static void repeatExecutions(ExecGenerator execGenerator, int iterations, boolean showProgress)
{
... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.test;
import static org.openjena.atlas.lib.RandomLib.random ;
import java.util.Arrays;
/** Support for testing BTrees */
public class Gen
{
... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json.io;
import java.io.OutputStream;
import java.util.Stack;
import org.openjena.atlas.io.IndentedWriter ;
import org.openjena.atlas.lib.Ref ;
/** A l... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json.io.parserjavacc;
import org.openjena.atlas.io.IndentedWriter ;
import org.openjena.atlas.json.io.JSONHandler ;
/** Parser debugging */
public class JSONP... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json.io.parserjavacc;
import java.io.Reader ;
import org.openjena.atlas.json.JsonParseException ;
import org.openjena.atlas.json.io.JSONHandler ;
import org.o... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json.io.parserjavacc.javacc;
import org.openjena.atlas.json.io.JSONHandler ;
import org.openjena.atlas.json.io.JSONHandlerBase ;
public class JSON_ParserBase
... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json.io;
public interface JSONHandler
{
void startParse() ;
void finishParse() ;
void startObject() ;
void finishObject() ;
/... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json.io.parser;
import static com.hp.hpl.jena.riot.tokens.TokenType.EOF;
import org.openjena.atlas.iterator.PeekIterator ;
import org.openjena.atlas.json.JsonParseExce... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json.io.parser;
import static com.hp.hpl.jena.riot.tokens.TokenType.COLON ;
import static com.hp.hpl.jena.riot.tokens.TokenType.COMMA ;
import static com.hp.hpl.jena.r... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json.io.parser;
import static com.hp.hpl.jena.riot.RiotChars.* ;
import java.io.IOException ;
import java.util.NoSuchElementException ;
import org.openjena.... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json.io.parser;
import java.io.Reader ;
import org.openjena.atlas.io.PeekReader ;
import org.openjena.atlas.json.io.JSONHandler ;
import org.openjena.atlas.js... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json.io;
public class JSONHandlerBase implements JSONHandler
{
//@Override
public void startParse()
{}
//@Override
public void finish... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json.io;
import java.io.OutputStream ;
import java.util.Set ;
import java.util.SortedSet ;
import java.util.TreeSet ;
import org.openjena.atlas.io.IndentedWriter ;... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json.io;
import java.util.Stack ;
import org.openjena.atlas.json.JsonArray ;
import org.openjena.atlas.json.JsonBoolean ;
import org.openjena.atlas.json.JsonNull ;
... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json;
public class JsonString extends JsonPrimitive
{
private final String string ;
public JsonString(String string) { this.string = string ; }
... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json;
public class JsonNull extends JsonPrimitive
{
static public JsonNull instance = new JsonNull() ;
private JsonNull() {}
@Override
p... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* (c) Copyright 2010 Talis Infromation Ltd.
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json;
public class JsonException extends RuntimeException
{
public JsonException()
{ super() ; }
... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json;
public class JsonBoolean extends JsonPrimitive
{
private final boolean bool ;
public JsonBoolean(boolean bool)
{ this.bool = bool ; }
... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* (c) Copyright 2010 Talis Infromation Ltd.
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json;
public class JsonParseException extends JsonException
{
private int line = -1 ;
private int column... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json;
public abstract class JsonPrimitive extends JsonValue
{
}
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
*
*... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json;
public interface JsonVisitor
{
void visit(JsonObject jsonObject) ;
void visit(JsonArray jsonArray) ;
void visit(JsonString jsonString) ;
v... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json;
import java.io.FileInputStream ;
import java.io.FileNotFoundException ;
import java.io.OutputStream ;
import java.io.Reader ;
import java.io.StringReader ;
... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json;
import java.util.*;
public class JsonArray extends JsonValue implements List<JsonValue>
{
private List<JsonValue> array = new ArrayList<JsonValue>() ;
... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.Map.Entry ;
public class JsonObjec... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json;
import org.openjena.atlas.io.IndentedLineBuffer ;
import org.openjena.atlas.io.IndentedWriter ;
import org.openjena.atlas.io.Printable ;
import org.openje... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.json;
import java.math.BigDecimal;
public class JsonNumber extends JsonPrimitive
{
public static JsonNumber valueDecimal(String image)
{
return ne... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.logging.java;
import java.util.Date;
import java.util.logging.Formatter;
import java.util.logging.LogRecord;
/** A pattern-like log formatter */
public class... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.logging.java;
import java.util.logging.*;
public class ConsoleHandlerStdout extends Handler
{
private void configure()
{
LogManager man... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.logging;
//ANDROID: rewritten in order to use Android logging
//import java.io.ByteArrayInputStream ;
//import java.io.File;
//import java.io.FileInputStream ... |
/*
* (c) Copyright 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.hp.hpl.jena... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
/** Synchronization wrapper for a pool */
public class PoolSync<T> extends PoolBase<T>
{
public PoolSync() { }
@Override
public fin... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import java.util.* ;
/** Sorted output */
public class PropertiesSorted extends Properties
{
private Comparator<String> comparator = null ;
//p... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
public class PoolFiniteBlocking<T> implements Pool<T>
{
private PoolFiniteBlocking(int size) { }
public T get()
{
return null ... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
public final class SinkCounting<T> extends SinkWrapper<T>
{
private long count = 0 ;
public SinkCounting(Sink<T> output)
{ super(output) ;... |
/*
* (c) Copyright 2010 Talis Information Ltd
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
public interface Allocator<T>
{
/** Allocate a new T, different from others allocated */
public T create() ;
// /** Reset the process of allocation - may cause ... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import static java.lang.String.format;
import java.util.Arrays;
import java.util.List;
/** General descriptor of a reordering (mapping) of columns ... |
/*
* (c) Copyright 2009 Talis Information Ltd.
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
/** Split a sink stream and duplicate the operations onto two sinks
* See also: {@link SinkWrapper}
*/
public class SinkSplit<T> implements Sink<T>
{
private final Sink... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import static com.hp.hpl.jena.tdb.sys.SystemTDB.NullOut;
import static java.lang.System.arraycopy;
import java.util.Arrays;
import java.io.PrintStream;
im... |
/*
* (c) Copyright 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
// NB shifting is "mod 64" -- <<64 is a no-op (not a clear).
// http://mindprod.com/jgloss/masking.html
/** Utilities for manipulating a bit p... |
/*
* (c) Copyright 2009 Talis Information Ltd.
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
public interface Closeable
{
public void close() ;
}
/*
* (c) Copyright 2009 Talis Information Ltd.
* All rights reserved.
*
* Redistribution and use in source and... |
/*
* (c) Copyright 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import java.util.HashSet;
import java.util.Set;
public class SetUtils
{
private SetUtils() {}
// Set specific operations
... |
/*
* (c) Copyright 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
// NB shifting is "mod 32" -- <<32 is a no-op (not a clear).
// http://mindprod.com/jgloss/masking.html
/** Utilities for manipulating a bit p... |
/*
* (c) Copyright 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import static org.openjena.atlas.lib.Lib.hashCodeObject ;
import static org.openjena.atlas.lib.StrUtils.str ;
public class Pair<A, B>
{... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
public interface ActionKeyValue<KeyType, ValueType>
{
public void apply(KeyType key, ValueType value) ;
}
/*
* (c) Copyright 2007, 2008, 200... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
public final class SinkNull<T> implements Sink<T>
{
public static <X> SinkNull<X> create() { return new SinkNull<X>() ; }
/*@Override*/ public ... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import java.util.Stack;
/** A Pool of objects. Base implements a non-blocking pool (returns null on no entry)
* with infinite upper bound. Set effective... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import org.openjena.atlas.lib.cache.* ;
public class CacheFactory
{
public static <Key, Value> Cache<Key, Value> createCache(Getter<Key, Value> get... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
public class NotImplemented extends InternalErrorException
{
public NotImplemented() { super() ; }
public NotImplemented(St... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib ;
/** Key-value slot, with chaining for lookup. */
public class Slot<K,V>
{
private final Slot<K,V> previous ;
private final K key ;
priva... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import java.io.ByteArrayInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;
import com.hp.hpl.jena.sparql.u... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import org.slf4j.Logger;
public class SinkLogging<T> implements Sink<T>
{
private Logger log ;
public SinkLogging(Logger log) { this.log = log ; }
... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import java.nio.IntBuffer;
import java.util.Comparator;
import java.util.List;
public class Alg
{
// Linear search is really there to test bi... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
/** A cache with some readable statistics */
public interface CacheStats<K,V> extends Cache<K,V>
{
public long getCacheEntries() ;
public long getCache... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
public interface Action<T>
{
public void apply(T item) ;
}
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* A... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import com.hp.hpl.jena.sparql.core.Closeable;
/** Interface for the destination of things */
public interface Sink<T> extends Closeable
{
// Can't help bu... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import org.openjena.atlas.logging.Log ;
public class Lib
{
private Lib() {}
/** Encode an index (the insertion point) when not found */
... |
/*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.uti... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import java.lang.reflect.Array ;
/** Collection of array-related operations */
public class ArrayUtils
{
private ArrayUtils() {}
/** Allo... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import java.nio.charset.CharsetEncoder;
public class Chars
{
private Chars() {}
... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
public class NumberUtils
{
// Maximum length of a length 1,2,3,4...
private final static int [] maxTable = {
9, 99, 999, 9999, 99999, 999999, 9... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
/** A mutable container */
public class Ref<T>
{
private T value ;
public T getValue() { return value; }
public Ref(T initial)
{ s... |
/*
* (c) Copyright 2009 Talis Information Ltd.
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
/** Wrap one sink in another - to pass on behaviour, the derived Sink must call super.operation
* See also: {@link SinkSplit}
*/
public class SinkWrapper<T> implements Sink<T>... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import java.util.ArrayList;
import java.util.List;
import org.openjena.atlas.iterator.FilterUnique ;
import org.openjena.atlas.iterator.Iter ;
pub... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP All rights
* reserved. [See end of file]
*/
package org.openjena.atlas.lib ;
public interface Pool<T>
{
public abstract void put(T item) ;
/** Get an item from the pool - return null if the pool is empty */
public abstra... |
// Base 64 encoder - public domain.
// Changes : put in ARQ/TDB library package
// http://iharder.sourceforge.net/current/java/base64/
// With thanks.
package org.openjena.atlas.lib;
/**
* <p>Encodes and decodes to and from Base64 notation.</p>
* <p>Homepage: <a href="http://iharder.net/base64">http://ihar... |
// Md5.java
// CVS Id: Md5.java,v 1.5 2000/08/16 21:37:48 ylafon Exp
// (c) COPYRIGHT MIT and INRIA, 1996.
//package org.w3c.tools.crypt ;
// AFS - Want a standalone version
package org.openjena.atlas.lib;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import ... |
/*
* (c) Copyright 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
public interface CacheSet<T>
{
public void add(T e) ;
public void clear() ;
public boolean contains(T obj) ;
public boolean isEmpty() ;
// ... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import java.util.Iterator;
import java.util.Map;
import org.openjena.atlas.iterator.Iter ;
/**
* A map with parent sharing. New entries go into a... |
/*
* (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import org.openjena.atlas.iterator.Iter ;
import org.openjena.atlas.iterato... |
/*
* (c) Copyright 2009 Talis Information Limited
* All rights reserved.
* [See end of file]
*/
package org.openjena.atlas.lib;
import java.io.PrintStream ;
public class SinkPrint<T> implements Sink<T>
{
private PrintStream out ;
public SinkPrint()
{ this(System.out); }
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.