com.android.builder.png
Class AaptProcess
java.lang.Object
com.android.builder.png.AaptProcess
public class AaptProcess
- extends java.lang.Object
interface to the aapt long running process.
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 |
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 crunchout
- where to place the crunched filejob
- 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