com.android.builder.png
Class AaptProcess

java.lang.Object
  extended by com.android.builder.png.AaptProcess

public class AaptProcess
extends java.lang.Object

interface to the aapt long running process.


Nested Class Summary
static class AaptProcess.Builder
           
 
Method Summary
 void crunch(java.io.File in, java.io.File out, Job<AaptProcess> job)
          Notifies the slave process of a new crunching request, do not block on completion, the notification will be issued through the job parameter's Job.finished() or Job.error() functions.
 void shutdown()
          Shutdowns the slave process and release all resources.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

crunch

public void crunch(@NonNull
                   java.io.File in,
                   @NonNull
                   java.io.File out,
                   @NonNull
                   Job<AaptProcess> job)
            throws java.io.IOException
Notifies the slave process of a new crunching request, do not block on completion, the notification will be issued through the job parameter's Job.finished() or Job.error() functions.

Parameters:
in - the source file to crunch
out - where to place the crunched file
job - the job to notify when the crunching is finished successfully or not.
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

shutdown

public void shutdown()
              throws java.io.IOException,
                     java.lang.InterruptedException
Shutdowns the slave process and release all resources.

Throws:
java.io.IOException
java.lang.InterruptedException