libbluray | branch: master | hpi1 <[email protected]> | Fri Mar 20 15:27:27 2015 +0200| [2cd01627584f4c89f43648cdec677c903a1ccc0b] | committer: hpi1
Remove trailing whitespace > http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=2cd01627584f4c89f43648cdec677c903a1ccc0b --- .../bdj/java/org/dvb/dsmcc/ServiceDomain.java | 26 ++++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/libbluray/bdj/java/org/dvb/dsmcc/ServiceDomain.java b/src/libbluray/bdj/java/org/dvb/dsmcc/ServiceDomain.java index 0df043f..cfa78b4 100644 --- a/src/libbluray/bdj/java/org/dvb/dsmcc/ServiceDomain.java +++ b/src/libbluray/bdj/java/org/dvb/dsmcc/ServiceDomain.java @@ -43,14 +43,14 @@ public class ServiceDomain { public void attach(Locator locator) throws DSMCCException, InterruptedIOException, MPEGDeliveryException - { + { BDLocator bdl = checkLocator(locator); if (bdl == null) throw new DSMCCException("invalid BDLocator"); - + if (!bdl.isJarFileItem()) throw new DSMCCException("invalid BDLocator"); - + try { this.mountPoint = new DSMCCObject(MountManager.mount(bdl.getJarFileId())); this.locator = locator; @@ -87,21 +87,21 @@ public class ServiceDomain { BDLocator bdl = checkLocator(locator); if (bdl == null) throw new InvalidLocatorException("invalid BDLocator"); - + if (bdl.isJarFileItem()) { String mountPt = MountManager.getMount(bdl.getJarFileId()); - + if (mountPt == null) throw new NotLoadedException(); - + DSMCCObject obj = new DSMCCObject(mountPt, bdl.getPathSegments()); - + if (!obj.exists()) throw new FileNotFoundException(); - + return obj.getURL(); } - + throw new InvalidLocatorException(); } @@ -125,20 +125,20 @@ public class ServiceDomain { { return locator; } - + private static BDLocator checkLocator(Locator locator) { if (!(locator instanceof BDLocator)) return null; - + BDLocator bdl = (BDLocator)locator; - + if (bdl.isJarFileItem()) return bdl; else return null; } - + private DSMCCObject mountPoint = null; private Locator locator = null; } _______________________________________________ libbluray-devel mailing list [email protected] https://mailman.videolan.org/listinfo/libbluray-devel
