Package org.gudy.azureus2.pluginsimpl.local.utils

Examples of org.gudy.azureus2.pluginsimpl.local.utils.PooledByteBufferImpl


              len = max_read_chunk;
            }
           
            DirectByteBuffer buffer = core_file.read( pos, (int)len );
 
            inform( new event( new PooledByteBufferImpl( buffer ), pos, (int)len ));
           
            pos += len;
           
            rem -= len;
           
View Full Code Here


        public void
        readCompleted(
          org.gudy.azureus2.core3.disk.DiskManagerReadRequest   _request,
          DirectByteBuffer                     _data )
        {
          listener.complete( request, new PooledByteBufferImpl( _data ));
        }

        public void
        readFailed(
          org.gudy.azureus2.core3.disk.DiskManagerReadRequest   _request,
View Full Code Here

           
            int  chunk = (int)Math.min( rem, max_read_chunk );
           
            int  len = raf.read( buffer, 0, chunk );
                       
            sendEvent( new event( new PooledByteBufferImpl( buffer, 0, len ), pos, len ));
           
            rem -= len;
            pos  += len;
          }
        }catch( Throwable e ){
View Full Code Here

             
              sendEvent( new event( pos ));
             
            }else{
                             
              sendEvent( new event( new PooledByteBufferImpl( buffer, 0, len ), pos, len ));
             
              rem -= len;
              pos  += len;
            }
          }
View Full Code Here

               
                sendEvent( new event( pos ));
               
              }else{
                               
                sendEvent( new event( new PooledByteBufferImpl( buffer, 0, len ), pos, len ));
               
                rem -= len;
                pos  += len;
              }
            }
View Full Code Here

             
              int  chunk = (int)Math.min( rem, max_read_chunk );
             
              int  len = raf.read( buffer, 0, chunk );
                         
              sendEvent( new event( new PooledByteBufferImpl( buffer, 0, len ), pos, len ));
             
              rem -= len;
              pos  += len;
             
              position += len;
View Full Code Here

    warningIcon = imageLoader.getImage("image.sidebar.vitality.alert");
    infoIcon   = imageLoader.getImage("image.sidebar.vitality.info");
    updateStatusWarnings();
    Messages.setLanguageText(statusWarnings,
        "MainWindow.status.warning.tooltip");
    Alerts.addMessageHistoryListener(new AlertHistoryListener() {
      public void alertHistoryAdded(LogAlert params) {
        updateStatusWarnings();
      }
      public void alertHistoryRemoved(LogAlert alert) {
        updateStatusWarnings();
View Full Code Here

    itemDownSpeedManual.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        String kbps_str = MessageText.getString("MyTorrentsView.dialog.setNumber.inKbps",
            new String[]{ DisplayFormatters.getRateUnit(DisplayFormatters.UNIT_KB ) });

        SimpleTextEntryWindow entryWindow = new SimpleTextEntryWindow();
        entryWindow.initTexts("MyTorrentsView.dialog.setSpeed.title",
            new String[] {
              MessageText.getString(up_menu
                  ? "MyTorrentsView.dialog.setNumber.upload"
                  : "MyTorrentsView.dialog.setNumber.download")
            }, "MyTorrentsView.dialog.setNumber.text", new String[] {
              kbps_str,
              MessageText.getString(up_menu
                  ? "MyTorrentsView.dialog.setNumber.upload"
                  : "MyTorrentsView.dialog.setNumber.download")
            });

        entryWindow.prompt(new UIInputReceiverListener() {
          public void UIInputReceiverClosed(UIInputReceiver entryWindow) {
            if (!entryWindow.hasSubmittedInput()) {
              return;
            }
            String sReturn = entryWindow.getSubmittedInput();

            if (sReturn == null)
              return;

            int newSpeed;
View Full Code Here

          new Listener()
        {
              public void
          handleEvent(Event event)
              {
                new CertificateCreatorWindow();
              }
          });
     
      new Label(gSecurity, SWT.NULL );
     
View Full Code Here

  public static MenuItem addBetaMenuItem(Menu menuParent) {
    final MenuItem menuItem = addMenuItem(menuParent, MENU_ID_BETA_PROG,
        new Listener() {
          public void handleEvent(Event e) {
            new BetaWizard();
      }
    });

    COConfigurationManager.addAndFireParameterListener(
        "Beta Programme Enabled", new ParameterListener() {
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.pluginsimpl.local.utils.PooledByteBufferImpl

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.