mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Include and parse shareWithAdditionalInfo to be used in shares autocompletion and list
This commit is contained in:
parent
249e25768b
commit
59ed7e42ec
@ -36,6 +36,7 @@ import com.owncloud.android.lib.common.http.methods.nonwebdav.GetMethod;
|
|||||||
import com.owncloud.android.lib.common.operations.RemoteOperation;
|
import com.owncloud.android.lib.common.operations.RemoteOperation;
|
||||||
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
|
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
|
||||||
import com.owncloud.android.lib.common.utils.Log_OC;
|
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||||
|
|
||||||
import org.json.JSONArray;
|
import org.json.JSONArray;
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
|
|
||||||
@ -46,13 +47,13 @@ import static com.owncloud.android.lib.common.operations.RemoteOperationResult.R
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by masensio on 08/10/2015.
|
* Created by masensio on 08/10/2015.
|
||||||
* <p>
|
*
|
||||||
* Retrieves a list of sharees (possible targets of a share) from the ownCloud server.
|
* Retrieves a list of sharees (possible targets of a share) from the ownCloud server.
|
||||||
* <p>
|
*
|
||||||
* Currently only handles users and groups. Users in other OC servers (federation) should be added later.
|
* Currently only handles users and groups. Users in other OC servers (federation) should be added later.
|
||||||
* <p>
|
*
|
||||||
* Depends on SHAREE API. {@See https://github.com/owncloud/documentation/issues/1626}
|
* Depends on SHAREE API. {@See https://github.com/owncloud/documentation/issues/1626}
|
||||||
* <p>
|
*
|
||||||
* Syntax:
|
* Syntax:
|
||||||
* Entry point: ocs/v2.php/apps/files_sharing/api/v1/sharees
|
* Entry point: ocs/v2.php/apps/files_sharing/api/v1/sharees
|
||||||
* HTTP method: GET
|
* HTTP method: GET
|
||||||
@ -61,7 +62,7 @@ import static com.owncloud.android.lib.common.operations.RemoteOperationResult.R
|
|||||||
* url argument: search - string, optional
|
* url argument: search - string, optional
|
||||||
* url arguments: perPage - int, optional
|
* url arguments: perPage - int, optional
|
||||||
* url arguments: page - int, optional
|
* url arguments: page - int, optional
|
||||||
* <p>
|
*
|
||||||
* Status codes:
|
* Status codes:
|
||||||
* 100 - successful
|
* 100 - successful
|
||||||
*
|
*
|
||||||
@ -71,22 +72,22 @@ import static com.owncloud.android.lib.common.operations.RemoteOperationResult.R
|
|||||||
*/
|
*/
|
||||||
public class GetRemoteShareesOperation extends RemoteOperation<ArrayList<JSONObject>> {
|
public class GetRemoteShareesOperation extends RemoteOperation<ArrayList<JSONObject>> {
|
||||||
|
|
||||||
public static final String NODE_VALUE = "value";
|
|
||||||
public static final String PROPERTY_LABEL = "label";
|
|
||||||
public static final String PROPERTY_SHARE_TYPE = "shareType";
|
|
||||||
public static final String PROPERTY_SHARE_WITH = "shareWith";
|
|
||||||
private static final String TAG = GetRemoteShareesOperation.class.getSimpleName();
|
private static final String TAG = GetRemoteShareesOperation.class.getSimpleName();
|
||||||
|
|
||||||
// OCS Routes
|
// OCS Routes
|
||||||
private static final String OCS_ROUTE = "ocs/v2.php/apps/files_sharing/api/v1/sharees"; // from OC 8.2
|
private static final String OCS_ROUTE = "ocs/v2.php/apps/files_sharing/api/v1/sharees"; // from OC 8.2
|
||||||
|
|
||||||
// Arguments - names
|
// Arguments - names
|
||||||
private static final String PARAM_FORMAT = "format";
|
private static final String PARAM_FORMAT = "format";
|
||||||
private static final String PARAM_ITEM_TYPE = "itemType";
|
private static final String PARAM_ITEM_TYPE = "itemType";
|
||||||
private static final String PARAM_SEARCH = "search";
|
private static final String PARAM_SEARCH = "search";
|
||||||
private static final String PARAM_PAGE = "page"; // default = 1
|
private static final String PARAM_PAGE = "page"; // default = 1
|
||||||
private static final String PARAM_PER_PAGE = "perPage"; // default = 200
|
private static final String PARAM_PER_PAGE = "perPage"; // default = 200
|
||||||
|
|
||||||
// Arguments - constant values
|
// Arguments - constant values
|
||||||
private static final String VALUE_FORMAT = "json";
|
private static final String VALUE_FORMAT = "json";
|
||||||
private static final String VALUE_ITEM_TYPE = "file"; // to get the server search for users / groups
|
private static final String VALUE_ITEM_TYPE = "file"; // to get the server search for users / groups
|
||||||
|
|
||||||
// JSON Node names
|
// JSON Node names
|
||||||
private static final String NODE_OCS = "ocs";
|
private static final String NODE_OCS = "ocs";
|
||||||
private static final String NODE_DATA = "data";
|
private static final String NODE_DATA = "data";
|
||||||
@ -94,6 +95,12 @@ public class GetRemoteShareesOperation extends RemoteOperation<ArrayList<JSONObj
|
|||||||
private static final String NODE_USERS = "users";
|
private static final String NODE_USERS = "users";
|
||||||
private static final String NODE_GROUPS = "groups";
|
private static final String NODE_GROUPS = "groups";
|
||||||
private static final String NODE_REMOTES = "remotes";
|
private static final String NODE_REMOTES = "remotes";
|
||||||
|
public static final String NODE_VALUE = "value";
|
||||||
|
public static final String PROPERTY_LABEL = "label";
|
||||||
|
public static final String PROPERTY_SHARE_TYPE = "shareType";
|
||||||
|
public static final String PROPERTY_SHARE_WITH = "shareWith";
|
||||||
|
public static final String PROPERTY_SHARE_WITH_ADDITIONAL_INFO = "shareWithAdditionalInfo";
|
||||||
|
|
||||||
private String mSearchString;
|
private String mSearchString;
|
||||||
private int mPage;
|
private int mPage;
|
||||||
private int mPerPage;
|
private int mPerPage;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* ownCloud Android Library is available under MIT license
|
/* ownCloud Android Library is available under MIT license
|
||||||
* Copyright (C) 2017 ownCloud GmbH.
|
* Copyright (C) 2019 ownCloud GmbH.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@ -24,22 +24,32 @@
|
|||||||
|
|
||||||
package com.owncloud.android.lib.resources.shares;
|
package com.owncloud.android.lib.resources.shares;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
import com.owncloud.android.lib.common.utils.Log_OC;
|
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||||
import com.owncloud.android.lib.resources.files.FileUtils;
|
import com.owncloud.android.lib.resources.files.FileUtils;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contains the data of a Share from the Share API
|
* Contains the data of a Share from the Share API
|
||||||
*
|
*
|
||||||
* @author masensio
|
* @author masensio
|
||||||
* @author David A. Velasco
|
* @author David A. Velasco
|
||||||
|
* @author David González Verdugo
|
||||||
*/
|
*/
|
||||||
public class OCShare implements Parcelable, Serializable {
|
public class OCShare implements Parcelable, Serializable {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated - should be refreshed every time the class changes!!
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 4124975224281327921L;
|
||||||
|
|
||||||
|
private static final String TAG = OCShare.class.getSimpleName();
|
||||||
|
|
||||||
public static final int DEFAULT_PERMISSION = -1;
|
public static final int DEFAULT_PERMISSION = -1;
|
||||||
public static final int READ_PERMISSION_FLAG = 1;
|
public static final int READ_PERMISSION_FLAG = 1;
|
||||||
public static final int UPDATE_PERMISSION_FLAG = 2;
|
public static final int UPDATE_PERMISSION_FLAG = 2;
|
||||||
@ -69,25 +79,7 @@ public class OCShare implements Parcelable, Serializable {
|
|||||||
public static final int FEDERATED_PERMISSIONS_FOR_FOLDER_AFTER_OC9 =
|
public static final int FEDERATED_PERMISSIONS_FOR_FOLDER_AFTER_OC9 =
|
||||||
FEDERATED_PERMISSIONS_FOR_FOLDER_UP_TO_OC9 +
|
FEDERATED_PERMISSIONS_FOR_FOLDER_UP_TO_OC9 +
|
||||||
SHARE_PERMISSION_FLAG;
|
SHARE_PERMISSION_FLAG;
|
||||||
/**
|
|
||||||
* Parcelable Methods
|
|
||||||
*/
|
|
||||||
public static final Parcelable.Creator<OCShare> CREATOR = new Parcelable.Creator<OCShare>() {
|
|
||||||
@Override
|
|
||||||
public OCShare createFromParcel(Parcel source) {
|
|
||||||
return new OCShare(source);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public OCShare[] newArray(int size) {
|
|
||||||
return new OCShare[size];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* Generated - should be refreshed every time the class changes!!
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = 4124975224281327921L;
|
|
||||||
private static final String TAG = OCShare.class.getSimpleName();
|
|
||||||
private long mId;
|
private long mId;
|
||||||
private long mFileSource;
|
private long mFileSource;
|
||||||
private long mItemSource;
|
private long mItemSource;
|
||||||
@ -99,6 +91,7 @@ public class OCShare implements Parcelable, Serializable {
|
|||||||
private long mExpirationDate;
|
private long mExpirationDate;
|
||||||
private String mToken;
|
private String mToken;
|
||||||
private String mSharedWithDisplayName;
|
private String mSharedWithDisplayName;
|
||||||
|
private String mSharedWithAdditionalInfo;
|
||||||
private String mName;
|
private String mName;
|
||||||
private boolean mIsFolder;
|
private boolean mIsFolder;
|
||||||
private long mUserId;
|
private long mUserId;
|
||||||
@ -119,17 +112,6 @@ public class OCShare implements Parcelable, Serializable {
|
|||||||
mPath = path;
|
mPath = path;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Getters and Setters
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Reconstruct from parcel
|
|
||||||
*
|
|
||||||
* @param source The source parcel
|
|
||||||
*/
|
|
||||||
protected OCShare(Parcel source) {
|
|
||||||
readFromParcel(source);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used internally. Reset all file properties
|
* Used internally. Reset all file properties
|
||||||
*/
|
*/
|
||||||
@ -145,6 +127,7 @@ public class OCShare implements Parcelable, Serializable {
|
|||||||
mExpirationDate = 0;
|
mExpirationDate = 0;
|
||||||
mToken = "";
|
mToken = "";
|
||||||
mSharedWithDisplayName = "";
|
mSharedWithDisplayName = "";
|
||||||
|
mSharedWithAdditionalInfo = "";
|
||||||
mIsFolder = false;
|
mIsFolder = false;
|
||||||
mUserId = -1;
|
mUserId = -1;
|
||||||
mRemoteId = -1;
|
mRemoteId = -1;
|
||||||
@ -152,6 +135,8 @@ public class OCShare implements Parcelable, Serializable {
|
|||||||
mName = "";
|
mName = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Getters and Setters
|
||||||
|
|
||||||
public long getId() {
|
public long getId() {
|
||||||
return mId;
|
return mId;
|
||||||
}
|
}
|
||||||
@ -240,6 +225,14 @@ public class OCShare implements Parcelable, Serializable {
|
|||||||
this.mSharedWithDisplayName = (sharedWithDisplayName != null) ? sharedWithDisplayName : "";
|
this.mSharedWithDisplayName = (sharedWithDisplayName != null) ? sharedWithDisplayName : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSharedWithAdditionalInfo() {
|
||||||
|
return mSharedWithAdditionalInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSharedWithAdditionalInfo(String sharedWithAdditionalInfo) {
|
||||||
|
this.mSharedWithAdditionalInfo = sharedWithAdditionalInfo;
|
||||||
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return mName;
|
return mName;
|
||||||
}
|
}
|
||||||
@ -284,6 +277,30 @@ public class OCShare implements Parcelable, Serializable {
|
|||||||
return ShareType.PUBLIC_LINK.equals(mShareType) && mShareWith.length() > 0;
|
return ShareType.PUBLIC_LINK.equals(mShareType) && mShareWith.length() > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parcelable Methods
|
||||||
|
*/
|
||||||
|
public static final Parcelable.Creator<OCShare> CREATOR = new Parcelable.Creator<OCShare>() {
|
||||||
|
@Override
|
||||||
|
public OCShare createFromParcel(Parcel source) {
|
||||||
|
return new OCShare(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OCShare[] newArray(int size) {
|
||||||
|
return new OCShare[size];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reconstruct from parcel
|
||||||
|
*
|
||||||
|
* @param source The source parcel
|
||||||
|
*/
|
||||||
|
protected OCShare(Parcel source) {
|
||||||
|
readFromParcel(source);
|
||||||
|
}
|
||||||
|
|
||||||
public void readFromParcel(Parcel source) {
|
public void readFromParcel(Parcel source) {
|
||||||
mId = source.readLong();
|
mId = source.readLong();
|
||||||
|
|
||||||
@ -301,6 +318,7 @@ public class OCShare implements Parcelable, Serializable {
|
|||||||
mExpirationDate = source.readLong();
|
mExpirationDate = source.readLong();
|
||||||
mToken = source.readString();
|
mToken = source.readString();
|
||||||
mSharedWithDisplayName = source.readString();
|
mSharedWithDisplayName = source.readString();
|
||||||
|
mSharedWithAdditionalInfo = source.readString();
|
||||||
mIsFolder = source.readInt() == 0;
|
mIsFolder = source.readInt() == 0;
|
||||||
mUserId = source.readLong();
|
mUserId = source.readLong();
|
||||||
mRemoteId = source.readLong();
|
mRemoteId = source.readLong();
|
||||||
@ -308,11 +326,13 @@ public class OCShare implements Parcelable, Serializable {
|
|||||||
mName = source.readString();
|
mName = source.readString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int describeContents() {
|
public int describeContents() {
|
||||||
return this.hashCode();
|
return this.hashCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(Parcel dest, int flags) {
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
dest.writeLong(mId);
|
dest.writeLong(mId);
|
||||||
@ -326,11 +346,11 @@ public class OCShare implements Parcelable, Serializable {
|
|||||||
dest.writeLong(mExpirationDate);
|
dest.writeLong(mExpirationDate);
|
||||||
dest.writeString(mToken);
|
dest.writeString(mToken);
|
||||||
dest.writeString(mSharedWithDisplayName);
|
dest.writeString(mSharedWithDisplayName);
|
||||||
|
dest.writeString(mSharedWithAdditionalInfo);
|
||||||
dest.writeInt(mIsFolder ? 1 : 0);
|
dest.writeInt(mIsFolder ? 1 : 0);
|
||||||
dest.writeLong(mUserId);
|
dest.writeLong(mUserId);
|
||||||
dest.writeLong(mRemoteId);
|
dest.writeLong(mRemoteId);
|
||||||
dest.writeString(mShareLink);
|
dest.writeString(mShareLink);
|
||||||
dest.writeString(mName);
|
dest.writeString(mName);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -28,6 +28,7 @@ import android.util.Xml;
|
|||||||
|
|
||||||
import com.owncloud.android.lib.common.network.WebdavUtils;
|
import com.owncloud.android.lib.common.network.WebdavUtils;
|
||||||
import com.owncloud.android.lib.resources.files.FileUtils;
|
import com.owncloud.android.lib.resources.files.FileUtils;
|
||||||
|
|
||||||
import org.xmlpull.v1.XmlPullParser;
|
import org.xmlpull.v1.XmlPullParser;
|
||||||
import org.xmlpull.v1.XmlPullParserException;
|
import org.xmlpull.v1.XmlPullParserException;
|
||||||
import org.xmlpull.v1.XmlPullParserFactory;
|
import org.xmlpull.v1.XmlPullParserFactory;
|
||||||
@ -36,11 +37,8 @@ import java.io.IOException;
|
|||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
//import android.util.Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parser for Share API Response
|
* Parser for Share API Response
|
||||||
*
|
|
||||||
* @author masensio
|
* @author masensio
|
||||||
* @author David González Verdugo
|
* @author David González Verdugo
|
||||||
*/
|
*/
|
||||||
@ -77,6 +75,7 @@ public class ShareXMLParser {
|
|||||||
private static final String NODE_STORAGE = "storage";
|
private static final String NODE_STORAGE = "storage";
|
||||||
private static final String NODE_MAIL_SEND = "mail_send";
|
private static final String NODE_MAIL_SEND = "mail_send";
|
||||||
private static final String NODE_SHARE_WITH_DISPLAY_NAME = "share_with_displayname";
|
private static final String NODE_SHARE_WITH_DISPLAY_NAME = "share_with_displayname";
|
||||||
|
private static final String NODE_SHARE_WITH_ADDITIONAL_INFO = "share_with_additional_info";
|
||||||
private static final String NODE_NAME = "name";
|
private static final String NODE_NAME = "name";
|
||||||
|
|
||||||
private static final String NODE_URL = "url";
|
private static final String NODE_URL = "url";
|
||||||
@ -92,11 +91,6 @@ public class ShareXMLParser {
|
|||||||
private int mStatusCode;
|
private int mStatusCode;
|
||||||
private String mMessage;
|
private String mMessage;
|
||||||
|
|
||||||
// Constructor
|
|
||||||
public ShareXMLParser() {
|
|
||||||
mStatusCode = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Getters and Setters
|
// Getters and Setters
|
||||||
public String getStatus() {
|
public String getStatus() {
|
||||||
return mStatus;
|
return mStatus;
|
||||||
@ -122,6 +116,11 @@ public class ShareXMLParser {
|
|||||||
this.mMessage = message;
|
this.mMessage = message;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Constructor
|
||||||
|
public ShareXMLParser() {
|
||||||
|
mStatusCode = -1;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isSuccess() {
|
public boolean isSuccess() {
|
||||||
return mStatusCode == SUCCESS;
|
return mStatusCode == SUCCESS;
|
||||||
}
|
}
|
||||||
@ -140,7 +139,6 @@ public class ShareXMLParser {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse is as response of Share API
|
* Parse is as response of Share API
|
||||||
*
|
|
||||||
* @param is
|
* @param is
|
||||||
* @return List of ShareRemoteFiles
|
* @return List of ShareRemoteFiles
|
||||||
* @throws XmlPullParserException
|
* @throws XmlPullParserException
|
||||||
@ -167,7 +165,6 @@ public class ShareXMLParser {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse OCS node
|
* Parse OCS node
|
||||||
*
|
|
||||||
* @param parser
|
* @param parser
|
||||||
* @return List of ShareRemoteFiles
|
* @return List of ShareRemoteFiles
|
||||||
* @throws XmlPullParserException
|
* @throws XmlPullParserException
|
||||||
@ -197,7 +194,6 @@ public class ShareXMLParser {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse Meta node
|
* Parse Meta node
|
||||||
*
|
|
||||||
* @param parser
|
* @param parser
|
||||||
* @throws XmlPullParserException
|
* @throws XmlPullParserException
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
@ -229,7 +225,6 @@ public class ShareXMLParser {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse Data node
|
* Parse Data node
|
||||||
*
|
|
||||||
* @param parser
|
* @param parser
|
||||||
* @return
|
* @return
|
||||||
* @throws XmlPullParserException
|
* @throws XmlPullParserException
|
||||||
@ -281,9 +276,9 @@ public class ShareXMLParser {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse Element node
|
* Parse Element node
|
||||||
*
|
|
||||||
* @param parser
|
* @param parser
|
||||||
* @return
|
* @return
|
||||||
* @throws XmlPullParserException
|
* @throws XmlPullParserException
|
||||||
@ -359,6 +354,9 @@ public class ShareXMLParser {
|
|||||||
} else if (name.equalsIgnoreCase(NODE_SHARE_WITH_DISPLAY_NAME)) {
|
} else if (name.equalsIgnoreCase(NODE_SHARE_WITH_DISPLAY_NAME)) {
|
||||||
share.setSharedWithDisplayName(readNode(parser, NODE_SHARE_WITH_DISPLAY_NAME));
|
share.setSharedWithDisplayName(readNode(parser, NODE_SHARE_WITH_DISPLAY_NAME));
|
||||||
|
|
||||||
|
} else if (name.equalsIgnoreCase(NODE_SHARE_WITH_ADDITIONAL_INFO)) {
|
||||||
|
share.setSharedWithAdditionalInfo(readNode(parser, NODE_SHARE_WITH_ADDITIONAL_INFO));
|
||||||
|
|
||||||
} else if (name.equalsIgnoreCase(NODE_URL)) {
|
} else if (name.equalsIgnoreCase(NODE_URL)) {
|
||||||
String value = readNode(parser, NODE_URL);
|
String value = readNode(parser, NODE_URL);
|
||||||
share.setShareLink(value);
|
share.setShareLink(value);
|
||||||
@ -389,7 +387,6 @@ public class ShareXMLParser {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse a node, to obtain its text. Needs readText method
|
* Parse a node, to obtain its text. Needs readText method
|
||||||
*
|
|
||||||
* @param parser
|
* @param parser
|
||||||
* @param node
|
* @param node
|
||||||
* @return Text of the node
|
* @return Text of the node
|
||||||
@ -407,7 +404,6 @@ public class ShareXMLParser {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Read the text from a node
|
* Read the text from a node
|
||||||
*
|
|
||||||
* @param parser
|
* @param parser
|
||||||
* @return Text of the node
|
* @return Text of the node
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
@ -424,7 +420,6 @@ public class ShareXMLParser {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Skip tags in parser procedure
|
* Skip tags in parser procedure
|
||||||
*
|
|
||||||
* @param parser
|
* @param parser
|
||||||
* @throws XmlPullParserException
|
* @throws XmlPullParserException
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
|
Loading…
x
Reference in New Issue
Block a user