void
    setEndianness(DapDataset dmr, ByteOrder order)
            throws DapException {
    """
	Set special attribute: endianness : overwrite exiting value
	
	@param dmr
	@param order
	@throws DapException
    """
        DapAttribute a = dmr.findAttribute(DapUtil.LITTLEENDIANATTRNAME);
        if(a == null) {
            a = new DapAttribute(DapUtil.LITTLEENDIANATTRNAME, DapType.UINT8);
            dmr.addAttribute(a);
        }
        //ByteOrder order = (ByteOrder) cxt.get(Dap4Util.DAP4ENDIANTAG);
        String oz = (order == ByteOrder.BIG_ENDIAN ? "0" : "1");
        a.setValues(new String[]{oz});
    }
void
    setEndianness(DapDataset dmr, ByteOrder order)
            throws DapException
    {
        DapAttribute a = dmr.findAttribute(DapUtil.LITTLEENDIANATTRNAME);
        if(a == null) {
            a = new DapAttribute(DapUtil.LITTLEENDIANATTRNAME, DapType.UINT8);
            dmr.addAttribute(a);
        }
        //ByteOrder order = (ByteOrder) cxt.get(Dap4Util.DAP4ENDIANTAG);
        String oz = (order == ByteOrder.BIG_ENDIAN ? "0" : "1");
        a.setValues(new String[]{oz});
    }
void setEndianness ( DapDataset dmr , ByteOrder order ) throws DapException { DapAttribute a = dmr . findAttribute ( DapUtil . LITTLEENDIANATTRNAME ) ; if ( a == null ) { a = new DapAttribute ( DapUtil . LITTLEENDIANATTRNAME , DapType . UINT8 ) ; dmr . addAttribute ( a ) ; } //ByteOrder order = (ByteOrder) cxt.get(Dap4Util.DAP4ENDIANTAG); String oz = ( order == ByteOrder . BIG_ENDIAN ? "0" : "1" ) ; a . setValues ( new String [ ] { oz } ) ; }
Set special attribute: endianness : overwrite exiting value

@param dmr
@param order
@throws DapException
Set special attribute : endianness : overwrite exiting value