Code example for PrimitiveSink

Methods: putBytes

0
     */ 
    enum ValNodeDelegateFunnel implements Funnel<org.treetank.api.IData> {
        INSTANCE;
        public void funnel(org.treetank.api.IData data, PrimitiveSink into) {
            final ITreeValData from = (ITreeValData)data;
            into.putBytes(from.getRawValue());
        } 
    } 
 
    /** Delegate for common node information. */ 
    private NodeDelegate mDelegate;
    /** Storing the value. */ 
    private byte[] mVal;
 
    /** 
     * Constructor 
     *  
     * @param pNodeDel 
     *            the common data. 
     * @param pVal