edu.udayton.udri.asset.novatel/src/edu/udayton/udri/asset/novatel/impl/timechanger/TimeChangeImpl.java
private void sendData(final long data) throws IOException
        {
            if (m_OutputStream == null)
            {
                Logging.log(LogService.LOG_ERROR, 
                        "Outputstream to write to time service is null. Cannot write desired time to service.");
                throw new IOException();
            }
            
            //allocate 8 bytes for long variable.
            final ByteBuffer byteBuffer = ByteBuffer.allocate(8);
            byteBuffer.putLong(data);
          
            m_OutputStream.write(byteBuffer.array());
        }
/**
         * Function to send data over the known output stream.
         * @param data
         *  the data to send over the known output stream
         * @throws IOException
         *  if the output stream used to write the time is null or if an error occurs during the
         *  write call.
         */
Function to send data over the known output stream.
@param data
the data to send over the known output stream
@throws IOException
if the output stream used to write the time is null or if an error occurs during the
write call.
Function to send data over the known output stream . @param data the data to send over the known output stream @throws IOException if the output stream used to write the time is null or if an error occurs during the write call .
private void sendData(final long data) throws IOException
        {
            if (m_OutputStream == null)
            {
                Logging.log(LogService.LOG_ERROR, 
                        "Outputstream to write to time service is null. Cannot write desired time to service.");
                throw new IOException();
            }
            final ByteBuffer byteBuffer = ByteBuffer.allocate(8);
            byteBuffer.putLong(data);
            m_OutputStream.write(byteBuffer.array());
        }
private void sendData ( final long data ) throws IOException { if ( m_OutputStream == null ) { Logging . log ( LogService . LOG_ERROR , "Outputstream to write to time service is null. Cannot write desired time to service." ) ; throw new IOException ( ) ; } final ByteBuffer byteBuffer = ByteBuffer . allocate ( 8 ) ; byteBuffer . putLong ( data ) ; m_OutputStream . write ( byteBuffer . array ( ) ) ; }
Function to send data over the known output stream.
Function to send data over the known output stream .
//allocate 8 bytes for long variable.